one.adp

Delivered as text/html

Related Files

[ hide source ] | [ make this the default ]

File Contents

<master>
<property name="context">@context;literal@</property>
<property name="doc(title)">Segment "@props.segment_name;literal@"</property>
				   
<h4>Properties of this segment</h4>

<ul>
  <li> Name: @props.segment_name@ (<a href="@name_edit_url@">Edit</a>) </li>
  <li> Group: <a href="../groups/one?group_id=@props.group_id;literal@" title="View this group">@props.group_name@</a> </li>
  <li> Relationship type: <a href="../rel-types/one?rel_type=@props.rel_type@" title="View this relationship type">@props.rel_type_pretty_name@</a> </li>
  <li> Number of @props.role_pretty_plural@: <a href="elements?segment_id=@segment_id;literal@" title="View the elements in this relational segment">@number_elements@</a> </li>
</ul>

<h4>Constraints on this segment</h4>

<ul>
  <if @constraints:rowcount;literal@ eq 0>
    <li>(none)</li>
  </if><else>
   <multiple name="constraints">
    <li> <a href="constraints/one?constraint_id=@constraints.constraint_id@">@constraints.constraint_name@</a> </li>
    </li>
   </multiple>
  </else>
  <li> <a href="constraints/new?rel_segment=@segment_id;literal@">Add a constraint</a> </li>
</ul>


<if @admin_p;literal@ true>
  <h4>Administration</h4>
  <ul>
    <li> <a href="delete?segment_id=@props.segment_id;literal@">Delete this segment</a> </li>
  </ul>
</if>