myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3338] branches/wf4ever/app/views/packs/_add_item


From: noreply
Subject: [myexperiment-hackers] [3338] branches/wf4ever/app/views/packs/_add_item_ro.rhtml: WFE-821: Show nicer URI form
Date: Wed, 23 Jan 2013 13:46:22 +0000 (UTC)

Revision
3338
Author
stain
Date
2013-01-23 13:46:22 +0000 (Wed, 23 Jan 2013)

Log Message

WFE-821: Show nicer URI form

Modified Paths

Diff

Modified: branches/wf4ever/app/views/packs/_add_item_ro.rhtml (3337 => 3338)


--- branches/wf4ever/app/views/packs/_add_item_ro.rhtml	2013-01-23 13:46:16 UTC (rev 3337)
+++ branches/wf4ever/app/views/packs/_add_item_ro.rhtml	2013-01-23 13:46:22 UTC (rev 3338)
@@ -1,4 +1,4 @@
-<% if true %>
+<% if false %>
         <p>
           <% form_tag(create_resource_pack_path(@pack), :multipart => true, :method => :post) do %>
             <%= file_field_tag :data -%>
@@ -18,3 +18,32 @@
           <% end %>
         </p>      
 <% end %>
+
+
+	<div class="box_currentuser_specific" style="margin-bottom: 0.5em; padding: 0.1em 0;">
+    <% form_tag(create_resource_pack_path(@pack), :multipart => true, :method => :post) do %>
+			<table class="quick_add">
+				<tr>
+					<td class="label" style="vertical-align: top; padding-bottom: 0;" rowspan=2>
+						<%= info_icon_with_tooltip("Type or paste in a link to something (either in #{Conf.sitename} or elsewhere). The link will then be resolved appropriately.") -%>
+						<b>Quick add:</b>
+						<p class="inner">(a link)</p>
+					</td>
+					<td style="padding-bottom: 0;">
+						<%= text_field_tag "uri", params[:uri], :size => 47 -%>
+					</td>
+					<td class="submit" style="padding-bottom: 0;">
+						<%= submit_tag "Add", :disable_with => "..." -%>
+					</td>
+				</tr>
+				<tr>
+					<td style="padding-top: 0;">
+						<p style="text-align: center; color: #333333; font-size: 77%; padding: 0;">
+							eg: "http://www.myexperiment.org/workflows/1" or "http://www.example.com/something-nice"
+						</p>
+					</td>
+					<td style="padding-top: 0;">&nbsp;</td>
+				</tr>
+			</table>
+		<% end -%>    
+	</div>
\ No newline at end of file

reply via email to

[Prev in Thread] Current Thread [Next in Thread]