aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Reaction/UI/ViewPort/Field/File.pm2
-rw-r--r--lib/Reaction/UI/Widget/Field/File.pm4
-rw-r--r--share/skin/default/layout/field/file.tt24
3 files changed, 7 insertions, 23 deletions
diff --git a/lib/Reaction/UI/ViewPort/Field/File.pm b/lib/Reaction/UI/ViewPort/Field/File.pm
index a1d181c..b3af0bc 100644
--- a/lib/Reaction/UI/ViewPort/Field/File.pm
+++ b/lib/Reaction/UI/ViewPort/Field/File.pm
@@ -9,6 +9,8 @@ class File is 'Reaction::UI::ViewPort::Field', which {
#has '+layout' => (default => 'file');
+ override value_string => sub { '' };
+
override apply_our_events => sub {
my ($self, $ctx, $events) = @_;
my $value_key = join(':', $self->location, 'value');
diff --git a/lib/Reaction/UI/Widget/Field/File.pm b/lib/Reaction/UI/Widget/Field/File.pm
index ad17c83..009eea3 100644
--- a/lib/Reaction/UI/Widget/Field/File.pm
+++ b/lib/Reaction/UI/Widget/Field/File.pm
@@ -4,6 +4,10 @@ use Reaction::UI::WidgetClass;
class File is 'Reaction::UI::Widget::Field', which {
+ after fragment widget {
+ arg field_type => 'file';
+ };
+
};
1;
diff --git a/share/skin/default/layout/field/file.tt b/share/skin/default/layout/field/file.tt
index 7d323d8..18ab448 100644
--- a/share/skin/default/layout/field/file.tt
+++ b/share/skin/default/layout/field/file.tt
@@ -1,25 +1,3 @@
-=for layout widget
-
-[% label %] [% field %] [% message %]
-
-=for layout field
-
-<input type="file" name="[% name | html%]" id="[% id | html %]" />
-
-=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 %]
+=extends field
=cut