r5944@tabor: wallacer | 2008-05-02 18:26:07 -0300
wreis [Fri, 2 May 2008 21:28:12 +0000 (21:28 +0000)]
 created default (bare skeleton) skin

lib/Reaction/UI/View.pm
share/skin/default/layout/action.tt [new file with mode: 0644]
share/skin/default/layout/field.tt [new file with mode: 0644]
share/skin/default/layout/field/array.tt [new file with mode: 0644]
share/skin/default/layout/field/collection.tt [new file with mode: 0644]
share/skin/default/layout/field/mutable.tt [new file with mode: 0644]
share/skin/default/layout/field/mutable/choose_many.tt [new file with mode: 0644]
share/skin/default/layout/field/mutable/time_range.tt [new file with mode: 0644]
share/skin/default/layout/list_view.tt [new file with mode: 0644]
share/skin/default/layout/object.tt [new file with mode: 0644]
share/skin/default/skin.conf [new file with mode: 0644]

index f0767f2..fd26870 100644 (file)
@@ -16,7 +16,7 @@ class View which {
 
   has 'app' => (is => 'ro', required => 1);
 
-  has 'skin_name' => (is => 'ro', required => 1);
+  has 'skin_name' => (is => 'ro', required => 1, default => 'default');
 
   has 'skin' => (
     is => 'ro', lazy_build => 1,
diff --git a/share/skin/default/layout/action.tt b/share/skin/default/layout/action.tt
new file mode 100644 (file)
index 0000000..d2d7617
--- /dev/null
@@ -0,0 +1,11 @@
+=extends NEXT
+
+=for layout field
+
+[% call_next %]
+
+=for layout message_layout
+
+    <span>[% message %]</span>
+
+=cut
diff --git a/share/skin/default/layout/field.tt b/share/skin/default/layout/field.tt
new file mode 100644 (file)
index 0000000..a5273bb
--- /dev/null
@@ -0,0 +1,7 @@
+=extends NEXT
+
+=for layout label
+
+ [% label %]:
+
+=cut
diff --git a/share/skin/default/layout/field/array.tt b/share/skin/default/layout/field/array.tt
new file mode 100644 (file)
index 0000000..39ae09d
--- /dev/null
@@ -0,0 +1,7 @@
+=extends NEXT
+
+=for layout label
+
+ [% content | html %]:
+
+=cut
diff --git a/share/skin/default/layout/field/collection.tt b/share/skin/default/layout/field/collection.tt
new file mode 100644 (file)
index 0000000..cb76a86
--- /dev/null
@@ -0,0 +1,7 @@
+=extends NEXT
+
+=for layout label_box
+
+ [% label %]:
+
+=cut
diff --git a/share/skin/default/layout/field/mutable.tt b/share/skin/default/layout/field/mutable.tt
new file mode 100644 (file)
index 0000000..936c392
--- /dev/null
@@ -0,0 +1,7 @@
+=extends NEXT
+
+=for layout message
+
+<span>[% message %]</span>
+
+=cut
diff --git a/share/skin/default/layout/field/mutable/choose_many.tt b/share/skin/default/layout/field/mutable/choose_many.tt
new file mode 100644 (file)
index 0000000..1b6cd2c
--- /dev/null
@@ -0,0 +1,16 @@
+=extends NEXT
+
+=for layout widget
+
+[% label_fragment %]
+[% message_fragment %]
+[% field %]
+
+=for layout action_buttons
+
+<input type="submit" value="&gt;&gt;" name="[% event_id_add_all_values %]" />
+<input type="submit" value="&gt;" name="[% event_id_do_add_values %]" />
+<input type="submit" value="&lt;" name="[% event_id_do_remove_values %]" />
+<input type="submit" value="&lt;&lt;" name="[% event_id_remove_all_values %]" />
+
+=cut
diff --git a/share/skin/default/layout/field/mutable/time_range.tt b/share/skin/default/layout/field/mutable/time_range.tt
new file mode 100644 (file)
index 0000000..9a53cb2
--- /dev/null
@@ -0,0 +1,11 @@
+=extends NEXT
+
+=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>
+[% END %]
+
+=cut
diff --git a/share/skin/default/layout/list_view.tt b/share/skin/default/layout/list_view.tt
new file mode 100644 (file)
index 0000000..5712596
--- /dev/null
@@ -0,0 +1,19 @@
+=extends NEXT
+
+=for layout actions
+
+<ul>
+  [% call_next %]
+</ul>
+
+=for layout pager
+
+<ul>
+  [% first_page %]
+  [% previous_page %]
+  [% page_list %]
+  [% next_page %]
+  [% last_page %]
+</ul>
+
+=cut
diff --git a/share/skin/default/layout/object.tt b/share/skin/default/layout/object.tt
new file mode 100644 (file)
index 0000000..21def52
--- /dev/null
@@ -0,0 +1,7 @@
+=extends NEXT
+
+=for layout field
+
+  [% call_next %]
+
+=cut
diff --git a/share/skin/default/skin.conf b/share/skin/default/skin.conf
new file mode 100644 (file)
index 0000000..65b4978
--- /dev/null
@@ -0,0 +1 @@
+extends base