aboutsummaryrefslogtreecommitdiff
path: root/mod/guidbrowser/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'mod/guidbrowser/views/default')
-rw-r--r--mod/guidbrowser/views/default/guidbrowser/entity_full.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/mod/guidbrowser/views/default/guidbrowser/entity_full.php b/mod/guidbrowser/views/default/guidbrowser/entity_full.php
index 13bdb7280..817443d23 100644
--- a/mod/guidbrowser/views/default/guidbrowser/entity_full.php
+++ b/mod/guidbrowser/views/default/guidbrowser/entity_full.php
@@ -12,6 +12,7 @@
$entity = $vars['entity'];
$metadata = $vars['metadata'];
$annotations = $vars['annotations'];
+ $relationships = $vars['relationships'];
?>
<div>
@@ -90,4 +91,34 @@
<input name="submit" type="submit" value="submit" />
</form>
</div>
+</div>
+
+<div id="relationship">
+<h2>Relationships</h2>
+ <?php
+ foreach ($relationships as $r)
+ {
+?>
+ <div>
+ <table>
+ <tr>
+ <td><b><?php echo $r->relationship; ?></b></td>
+ <td><?php echo $r->guid_two; ?></td>
+ </tr>
+ </table>
+ </div>
+<?php
+ }
+ ?>
+
+ <div>
+ <form method="post">
+ <input name="eguid" type="hidden" value="<?php echo $entity->guid; ?>" />
+ <input name="owner_id" type="hidden" value="<?php echo page_owner(); ?>" />
+ <input name="callaction" type="hidden" value="relationship" />
+ Relationship : <input name="relationship" type="text" />
+ Guid : <input name="guid2" type="text" />
+ <input name="submit" type="submit" value="submit" />
+ </form>
+ </div>
</div> \ No newline at end of file