-
-
Notifications
You must be signed in to change notification settings - Fork 279
/
add_remove_alias.tt
53 lines (53 loc) · 1.88 KB
/
add_remove_alias.tt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<table class="details [% edit.edit_kind %]-[%~ edit.display_data.entity_type ~%]-alias">
<tr>
<th>[%~ entity_label(edit.display_data.entity_type) ~%]</th>
<td>
[%~ descriptive_link(edit.display_data.${edit.display_data.entity_type}) ~%]
[%~ IF entity_exists(edit.display_data.${edit.display_data.entity_type}) ~%]
[%~ bracketedWithSpace(link_entity(edit.display_data.${edit.display_data.entity_type}, 'aliases', l('view all aliases'))) ~%]
[%~ END ~%]
</td>
</tr>
<tr>
<th>[%~ add_colon(l('Alias')) ~%]</th>
<td>[%~ isolate_text(edit.display_data.alias) ~%]</td>
</tr>
[%~ IF edit.display_data.sort_name != '' ~%]
<tr>
<th>[%~ add_colon(l('Sort name')) ~%]</th>
<td>[%~ edit.display_data.sort_name | html ~%]</td>
</tr>
[%~ END ~%]
[%~ IF edit.display_data.locale != '' ~%]
<tr>
<th>[%~ add_colon(l('Locale')) ~%]</th>
<td>[%~ edit.display_data.locale | locale ~%]</td>
</tr>
<tr>
<th>[%~ add_colon(l('Primary for locale')) ~%]</th>
<td>[%~ yesno(edit.display_data.primary_for_locale) ~%]</td>
</tr>
[%~ END ~%]
[%~ IF edit.display_data.type ~%]
<tr>
<th>[%~ add_colon(l('Type')) ~%]</th>
<td>[%~ edit.display_data.type.name | html ~%]</td>
</tr>
[%~ END ~%]
[%~ IF !edit.display_data.begin_date.is_empty ~%]
<tr>
<th>[%~ add_colon(l('Begin date')) ~%]</th>
<td>[%~ edit.display_data.begin_date.format | html ~%]</td>
</tr>
[%~ END ~%]
[%~ IF !edit.display_data.end_date.is_empty ~%]
<tr>
<th>[%~ add_colon(l('End date')) ~%]</th>
<td>[%~ edit.display_data.end_date.format | html ~%]</td>
</tr>
[%~ END ~%]
<tr>
<th>[%~ add_colon(l('Ended')) ~%]</th>
<td>[%~ yesno(edit.display_data.ended) ~%]</td>
</tr>
</table>