diff options
author | wreis <wreis@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-05-02 21:27:45 +0000 |
---|---|---|
committer | wreis <wreis@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-05-02 21:27:45 +0000 |
commit | a2b16e659c9c2647df8959a8c308fb2bbf6a4e9e (patch) | |
tree | 7252c91b1f7b41ccd31e16af6b4f3e197b24feff /share/skin/base | |
parent | 4f5c76dc82abdaef7efe5b0c6fcaf3fcdb0205af (diff) | |
download | reaction-a2b16e659c9c2647df8959a8c308fb2bbf6a4e9e.tar.gz reaction-a2b16e659c9c2647df8959a8c308fb2bbf6a4e9e.zip |
r5943@tabor: wallacer | 2008-05-02 17:30:59 -0300
renamed default to base
Diffstat (limited to 'share/skin/base')
42 files changed, 589 insertions, 0 deletions
diff --git a/share/skin/base/layout/action.tt b/share/skin/base/layout/action.tt new file mode 100644 index 0000000..67d6c37 --- /dev/null +++ b/share/skin/base/layout/action.tt @@ -0,0 +1,63 @@ +=for layout widget + + <form action="" method="post" enctype="multipart/form-data"> + [% header %] + [% field_list %] + [% buttons %] + [% footer %] + </form> + +=for layout header + +<!-- header --> + +=for layout field_list + +<p> [% call_next %] </p> + +=for layout field + +[% call_next %] <br /> + +=for layout message_layout + + <span>[% message %]</span> <br /> + +=for layout buttons + [% message %] + [% ok_button_fragment %] + [% apply_button_fragment %] + [% cancel_button_fragment %] + +=for layout standard_button + + <input type="submit" class="button" name="[% event_id %]" value="[% label %]" /> + +=for layout ok_button + +[% standard_button %] + +=for layout apply_button + +[% standard_button %] + +=for layout cancel_button + +[% standard_button %] + +=for layout whut + + [% IF (viewport.ordered_fields.size != 0) && allowed_events.grep('^apply$').size; %] + <input type="submit" name="[% viewport.event_id_for('apply') | html%]" value="[% apply_label %]" /> + [% END; %] + + [% IF allowed_events.grep('^close$').size; %] + <input type="submit" name="[% viewport.event_id_for('close') | html%]" value="[% close_label %]" /> + [% END; %] + <br /> + +=for layout footer + + <!-- footer --> + +=cut diff --git a/share/skin/base/layout/action/link.tt b/share/skin/base/layout/action/link.tt new file mode 100644 index 0000000..7c07d31 --- /dev/null +++ b/share/skin/base/layout/action/link.tt @@ -0,0 +1,3 @@ +=for layout widget + <a href="[% uri %]">[% label %]</a> +=cut diff --git a/share/skin/base/layout/collection.tt b/share/skin/base/layout/collection.tt new file mode 100644 index 0000000..d4703f1 --- /dev/null +++ b/share/skin/base/layout/collection.tt @@ -0,0 +1,5 @@ +=for layout widget + +[% members %] + +=cut
\ No newline at end of file diff --git a/share/skin/base/layout/collection/grid.tt b/share/skin/base/layout/collection/grid.tt new file mode 100644 index 0000000..bfde10d --- /dev/null +++ b/share/skin/base/layout/collection/grid.tt @@ -0,0 +1,37 @@ +=for layout widget + +<table> + [% header %] + [% body %] + [% footer %] +</table> + +=for layout header + +<thead> + [% header_row %] +</thead> + +=for layout header_row + +<tr> + [% header_cells %] +</tr> + +=for layout header_cell + +<th> [% header_cell_contents %] </th> + +=for layout header_cell_contents + +[% label %] + +=for layout body + +<tbody> + + [% members %] + +</tbody> + +=cut diff --git a/share/skin/base/layout/collection/grid/member.tt b/share/skin/base/layout/collection/grid/member.tt new file mode 100644 index 0000000..9cf24e2 --- /dev/null +++ b/share/skin/base/layout/collection/grid/member.tt @@ -0,0 +1,11 @@ +=for layout widget + +<tr> + [% field_list %] +</tr> + +=for layout field + +<td>[% call_next %]</td> + +=cut diff --git a/share/skin/base/layout/collection/grid/member/with_actions.tt b/share/skin/base/layout/collection/grid/member/with_actions.tt new file mode 100644 index 0000000..a0bca88 --- /dev/null +++ b/share/skin/base/layout/collection/grid/member/with_actions.tt @@ -0,0 +1,12 @@ +=extends collection/grid/member + +=for layout field_list + +[% call_next %] +[% actions %] + +=for layout action + +<td>[% call_next %]</td> + +=cut diff --git a/share/skin/base/layout/field.tt b/share/skin/base/layout/field.tt new file mode 100644 index 0000000..99954ab --- /dev/null +++ b/share/skin/base/layout/field.tt @@ -0,0 +1,14 @@ +=for layout widget + +[% label_fragment %] +[% value_layout %] + +=for layout label + +<strong > [% label %]: </strong> + +=for layout value_layout + +[% field_value %] + +=cut diff --git a/share/skin/base/layout/field/array.tt b/share/skin/base/layout/field/array.tt new file mode 100644 index 0000000..2b049b5 --- /dev/null +++ b/share/skin/base/layout/field/array.tt @@ -0,0 +1,20 @@ +=for layout widget + +[% label %] +[% list %] + +=for layout label + +<strong > [% content | html %]: </strong> + +=for layout list + +<ul> +[% content %] +</ul> + +=for layout item + +<li>[% content | html %]</li> + +=cut
\ No newline at end of file diff --git a/share/skin/base/layout/field/boolean.tt b/share/skin/base/layout/field/boolean.tt new file mode 100644 index 0000000..18ab448 --- /dev/null +++ b/share/skin/base/layout/field/boolean.tt @@ -0,0 +1,3 @@ +=extends field + +=cut diff --git a/share/skin/base/layout/field/collection.tt b/share/skin/base/layout/field/collection.tt new file mode 100644 index 0000000..47244e7 --- /dev/null +++ b/share/skin/base/layout/field/collection.tt @@ -0,0 +1,20 @@ +=for layout widget + +[% label_box %] +[% list %] + +=for layout label_box + +<strong> [% label %]: </strong> + +=for layout list + +<ul> +[% call_next %] +</ul> + +=for layout item + +<li>[% name %]</li> + +=cut diff --git a/share/skin/base/layout/field/date_time.tt b/share/skin/base/layout/field/date_time.tt new file mode 100644 index 0000000..18ab448 --- /dev/null +++ b/share/skin/base/layout/field/date_time.tt @@ -0,0 +1,3 @@ +=extends field + +=cut diff --git a/share/skin/base/layout/field/integer.tt b/share/skin/base/layout/field/integer.tt new file mode 100644 index 0000000..18ab448 --- /dev/null +++ b/share/skin/base/layout/field/integer.tt @@ -0,0 +1,3 @@ +=extends field + +=cut diff --git a/share/skin/base/layout/field/mutable.tt b/share/skin/base/layout/field/mutable.tt new file mode 100644 index 0000000..3983263 --- /dev/null +++ b/share/skin/base/layout/field/mutable.tt @@ -0,0 +1,33 @@ +=for layout widget + +[% label_fragment %] [% field %] [% message_fragment %] + +=for layout label + +<label for="[%field_id%]" [% field_is_required %]>[% label %]:</label> + +=for layout field_is_required_yes + +class="required_field" + +=for layout field_is_required_no + +=for layout field + +<!-- Why is this here??? --> +FIELD GOES HERE + +=for layout message + +<span>[% message %]</span><br /> + +=for layout field + +<input type="[% field_type %]" name="[% field_name %]" id="[% field_id %]" + [% field_body %] /> + +=for layout field_body + +value="[% field_value %]" + +=cut diff --git a/share/skin/base/layout/field/mutable/boolean.tt b/share/skin/base/layout/field/mutable/boolean.tt new file mode 100644 index 0000000..6d70f36 --- /dev/null +++ b/share/skin/base/layout/field/mutable/boolean.tt @@ -0,0 +1,18 @@ +=extends field/mutable + +=for layout widget + +<input name="[% exists_event %]" type="hidden" value="[% exists_value %]" /> +[% call_next %] + +=for layout field_body + +value="1" [% is_checked %] + +=for layout is_checked_yes + +checked="checked" + +=for layout is_checked_no + +=cut diff --git a/share/skin/base/layout/field/mutable/choose_many.tt b/share/skin/base/layout/field/mutable/choose_many.tt new file mode 100644 index 0000000..ed6c136 --- /dev/null +++ b/share/skin/base/layout/field/mutable/choose_many.tt @@ -0,0 +1,50 @@ +=extends field/mutable + +=for layout widget + +[% label_fragment %] +<br /> +[% message_fragment %] +[% field %] + +=for layout field + +<table> + <tr> + <td> [% available_values %] </td> + <td> [% action_buttons %] </td> + <td> + [% selected_values %] + [% current_values %] + </td> + </tr> +</table> + +=for layout available_values + +<select size="10" multiple="multiple" name="[% event_id_add_values %]"> + [% call_next %] +</select> + +=for layout selected_values + +<select size="10" multiple="multiple" name="[% event_id_remove_values %]"> + [% call_next %] +</select> + +=for layout hidden_value + +<input type="hidden" name="[% field_name %]" value="[% hidden_value %]"> + +=for layout value_option + +<option value="[% option_value %]">[% option_name %]</option> + +=for layout action_buttons + +<input type="submit" value=">>" name="[% event_id_add_all_values %]" /> <br /> +<input type="submit" value=">" name="[% event_id_do_add_values %]" /> <br /> +<input type="submit" value="<" name="[% event_id_do_remove_values %]" /> <br /> +<input type="submit" value="<<" name="[% event_id_remove_all_values %]" /> <br /> + +=cut diff --git a/share/skin/base/layout/field/mutable/choose_one.tt b/share/skin/base/layout/field/mutable/choose_one.tt new file mode 100644 index 0000000..74e8d8c --- /dev/null +++ b/share/skin/base/layout/field/mutable/choose_one.tt @@ -0,0 +1,27 @@ +=extends field/mutable + +=for layout field + +<select name="[% field_name %]" id="[% field_id %]"> + [% option_is_required %] + [% option_list %] +</select> + +=for layout option_is_required_yes + +=for layout option_is_required_no + +<option value="">--</option> + +=for layout option + + <option value="[% option_value %]" [% option_is_selected %] + > [% option_name %]</option> + +=for layout option_is_selected_yes + +selected="selected" + +=for layout option_is_selected_no + +=cut diff --git a/share/skin/base/layout/field/mutable/date_time.tt b/share/skin/base/layout/field/mutable/date_time.tt new file mode 100644 index 0000000..05a69a5 --- /dev/null +++ b/share/skin/base/layout/field/mutable/date_time.tt @@ -0,0 +1,3 @@ +=extends field/mutable + +=cut diff --git a/share/skin/base/layout/field/mutable/file.tt b/share/skin/base/layout/field/mutable/file.tt new file mode 100644 index 0000000..05a69a5 --- /dev/null +++ b/share/skin/base/layout/field/mutable/file.tt @@ -0,0 +1,3 @@ +=extends field/mutable + +=cut diff --git a/share/skin/base/layout/field/mutable/hidden_array.tt b/share/skin/base/layout/field/mutable/hidden_array.tt new file mode 100644 index 0000000..0f5e35d --- /dev/null +++ b/share/skin/base/layout/field/mutable/hidden_array.tt @@ -0,0 +1,9 @@ +=for layout widget + +[% hidden_list %] + +=for layout hidden_field + +<input type="hidden" name="[% field_name %]" value="[% field_value %]" /> + +=cut diff --git a/share/skin/base/layout/field/mutable/integer.tt b/share/skin/base/layout/field/mutable/integer.tt new file mode 100644 index 0000000..05a69a5 --- /dev/null +++ b/share/skin/base/layout/field/mutable/integer.tt @@ -0,0 +1,3 @@ +=extends field/mutable + +=cut diff --git a/share/skin/base/layout/field/mutable/matching_passwords.tt b/share/skin/base/layout/field/mutable/matching_passwords.tt new file mode 100644 index 0000000..d07b784 --- /dev/null +++ b/share/skin/base/layout/field/mutable/matching_passwords.tt @@ -0,0 +1,8 @@ +=extends field/mutable/password + +=for layout widget + +[% call_next %] +[% check_value %] + +=cut diff --git a/share/skin/base/layout/field/mutable/number.tt b/share/skin/base/layout/field/mutable/number.tt new file mode 100644 index 0000000..05a69a5 --- /dev/null +++ b/share/skin/base/layout/field/mutable/number.tt @@ -0,0 +1,3 @@ +=extends field/mutable + +=cut diff --git a/share/skin/base/layout/field/mutable/password.tt b/share/skin/base/layout/field/mutable/password.tt new file mode 100644 index 0000000..05a69a5 --- /dev/null +++ b/share/skin/base/layout/field/mutable/password.tt @@ -0,0 +1,3 @@ +=extends field/mutable + +=cut diff --git a/share/skin/base/layout/field/mutable/string.tt b/share/skin/base/layout/field/mutable/string.tt new file mode 100644 index 0000000..05a69a5 --- /dev/null +++ b/share/skin/base/layout/field/mutable/string.tt @@ -0,0 +1,3 @@ +=extends field/mutable + +=cut diff --git a/share/skin/base/layout/field/mutable/text.tt b/share/skin/base/layout/field/mutable/text.tt new file mode 100644 index 0000000..b4038aa --- /dev/null +++ b/share/skin/base/layout/field/mutable/text.tt @@ -0,0 +1,9 @@ +=extends field/mutable + +=for layout field + +<textarea name="[% field_name %]" id="[% field_id %]">[% + field_value +%]</textarea> + +=cut diff --git a/share/skin/base/layout/field/mutable/time_range.tt b/share/skin/base/layout/field/mutable/time_range.tt new file mode 100644 index 0000000..954c40b --- /dev/null +++ b/share/skin/base/layout/field/mutable/time_range.tt @@ -0,0 +1,25 @@ +=for layout widget + +[% label %] [% field %] [% message %] + +=for layout field + +TODO + +=for layout label + +<!-- This conditional goes away when mst comes up with something better --> +[% content_str = GET content; %] +[% IF content_str.length; %] + <label> [% content_str | html %]: </label> +[% END; %] + +=for layout message + +<!-- This conditional goes away when mst comes up with something better --> +[% content_str = GET content; %] +[% IF content_str.length; %] + <span> [% content_str | html %] </span> <br /> +[% END %] + +=cut diff --git a/share/skin/base/layout/field/number.tt b/share/skin/base/layout/field/number.tt new file mode 100644 index 0000000..18ab448 --- /dev/null +++ b/share/skin/base/layout/field/number.tt @@ -0,0 +1,3 @@ +=extends field + +=cut diff --git a/share/skin/base/layout/field/related_object.tt b/share/skin/base/layout/field/related_object.tt new file mode 100644 index 0000000..18ab448 --- /dev/null +++ b/share/skin/base/layout/field/related_object.tt @@ -0,0 +1,3 @@ +=extends field + +=cut diff --git a/share/skin/base/layout/field/string.tt b/share/skin/base/layout/field/string.tt new file mode 100644 index 0000000..18ab448 --- /dev/null +++ b/share/skin/base/layout/field/string.tt @@ -0,0 +1,3 @@ +=extends field + +=cut diff --git a/share/skin/base/layout/field/text.tt b/share/skin/base/layout/field/text.tt new file mode 100644 index 0000000..18ab448 --- /dev/null +++ b/share/skin/base/layout/field/text.tt @@ -0,0 +1,3 @@ +=extends field + +=cut diff --git a/share/skin/base/layout/list_view.tt b/share/skin/base/layout/list_view.tt new file mode 100644 index 0000000..f4f6501 --- /dev/null +++ b/share/skin/base/layout/list_view.tt @@ -0,0 +1,57 @@ +=extends collection/grid + +=for layout widget + +[% pager %] + +[% call_next %] + +[% pager %] + +[% actions %] + +=for layout header_action_cell + +<th colspan="[% col_count %]"> Actions </th> + +=for layout header_cell_contents + +<a href="[% order_uri %]">[% call_next %]</a> + +=for layout actions +<div class="collection_actions"> +<ul> + [% call_next %] +</ul> +</div> + +=for layout action +<li>[% call_next %]</li> + +=for layout pager + +<ul class="pager"> + [% first_page %] + [% previous_page %] + [% page_list %] + [% next_page %] + [% last_page %] +</ul> + +=for layout numbered_page_this_page + +<li> [% page_number %] </li> + +=for layout numbered_page + +<li> <a href="[% page_uri %]">[% page_number %]</a> </li> + +=for layout named_page + +<li> <a href="[% page_uri %]">[% page_name %]</a> </li> + +=for layout named_page_no_page + +<li> [% page_name %] </li> + +=cut diff --git a/share/skin/base/layout/object.tt b/share/skin/base/layout/object.tt new file mode 100644 index 0000000..cec7b4d --- /dev/null +++ b/share/skin/base/layout/object.tt @@ -0,0 +1,9 @@ +=for layout widget + + [% field_list %] + +=for layout field + + [% call_next %] <br> + +=cut diff --git a/share/skin/base/layout/site_layout.tt b/share/skin/base/layout/site_layout.tt new file mode 100644 index 0000000..e9b70ca --- /dev/null +++ b/share/skin/base/layout/site_layout.tt @@ -0,0 +1,49 @@ +=for layout widget +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> + +<head> + [% head %] +</head> + +<body> + [% body %] +</body> + +</html> + +=for layout head + + <title>[% title %]</title> + + [% head_meta %] + [% head_style %] + +=for layout head_meta + + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + [% meta_info %] + +=for layout meta_info + +[% call_next %] + +=for layout meta_member + +<meta name="[% meta_name %]" content="[% meta_value %]" />[% "\n" %] + +=for layout head_style + + <!-- stylesheet links go here --> + +=for layout body + +[% inner %] + +=for layout header + +<h1>[% title %]</h1> + +=cut diff --git a/share/skin/base/layout/value/boolean.tt b/share/skin/base/layout/value/boolean.tt new file mode 100644 index 0000000..310783b --- /dev/null +++ b/share/skin/base/layout/value/boolean.tt @@ -0,0 +1,5 @@ +=for layout widget + +[% value | html %] + +=cut
\ No newline at end of file diff --git a/share/skin/base/layout/value/collection.tt b/share/skin/base/layout/value/collection.tt new file mode 100644 index 0000000..c866aa8 --- /dev/null +++ b/share/skin/base/layout/value/collection.tt @@ -0,0 +1,15 @@ +=for layout widget + +[% list %] + +=for layout list + +<ul> +[% content %] +</ul> + +=for layout item + +<li>[% value | html %]</li> + +=cut diff --git a/share/skin/base/layout/value/date_time.tt b/share/skin/base/layout/value/date_time.tt new file mode 100644 index 0000000..0ee0d75 --- /dev/null +++ b/share/skin/base/layout/value/date_time.tt @@ -0,0 +1,5 @@ +=for layout widget + +[% value | html %] + +=cut diff --git a/share/skin/base/layout/value/image.tt b/share/skin/base/layout/value/image.tt new file mode 100644 index 0000000..5ebea74 --- /dev/null +++ b/share/skin/base/layout/value/image.tt @@ -0,0 +1,11 @@ +=for layout widget + +[% image %] + +=for layout has_image + +<img src="[% uri %]"> + +=for layout no_image + +=cut
\ No newline at end of file diff --git a/share/skin/base/layout/value/list.tt b/share/skin/base/layout/value/list.tt new file mode 100644 index 0000000..bd8ad27 --- /dev/null +++ b/share/skin/base/layout/value/list.tt @@ -0,0 +1,15 @@ +=for layout widget + +[% list %] + +=for layout list + +<ul> +[% content %] +</ul> + +=for layout item + +<li>[% value | html %]</li> + +=cut
\ No newline at end of file diff --git a/share/skin/base/layout/value/number.tt b/share/skin/base/layout/value/number.tt new file mode 100644 index 0000000..0ee0d75 --- /dev/null +++ b/share/skin/base/layout/value/number.tt @@ -0,0 +1,5 @@ +=for layout widget + +[% value | html %] + +=cut diff --git a/share/skin/base/layout/value/related_object.tt b/share/skin/base/layout/value/related_object.tt new file mode 100644 index 0000000..0ee0d75 --- /dev/null +++ b/share/skin/base/layout/value/related_object.tt @@ -0,0 +1,5 @@ +=for layout widget + +[% value | html %] + +=cut diff --git a/share/skin/base/layout/value/string.tt b/share/skin/base/layout/value/string.tt new file mode 100644 index 0000000..310783b --- /dev/null +++ b/share/skin/base/layout/value/string.tt @@ -0,0 +1,5 @@ +=for layout widget + +[% value | html %] + +=cut
\ No newline at end of file diff --git a/share/skin/base/layout/value/text.tt b/share/skin/base/layout/value/text.tt new file mode 100644 index 0000000..310783b --- /dev/null +++ b/share/skin/base/layout/value/text.tt @@ -0,0 +1,5 @@ +=for layout widget + +[% value | html %] + +=cut
\ No newline at end of file |