Sha256: 9b34bb0ea3042ff2290b50bc7bd3b5779304c00b8f7971b3ec6b74a99d491a31
Contents?: true
Size: 1.56 KB
Versions: 1
Compression:
Stored size: 1.56 KB
Contents
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent"> <ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" xmlns:g="urn:import:com.google.gwt.user.client.ui"> <ui:style> .buttons {} .signatur { float: left; } .signatur * { display: inline; margin-right: 1em; font-size: 0.8em;} .fields { clear: both;} .field { } </ui:style> <g:FlowPanel> <g:FlowPanel styleName="{style.buttons}"> <% unless options[:singleton] -%> <g:Button ui:field="newButton">New</g:Button> <g:Button ui:field="createButton">Create</g:Button> <% end -%> <g:Button ui:field="editButton">Edit</g:Button> <g:Button ui:field="saveButton">Save</g:Button> <% unless options[:singleton] -%> <g:Button ui:field="deleteButton">Delete</g:Button> <% end -%> </g:FlowPanel> <g:FlowPanel styleName="{style.signatur}"> <% unless options[:singleton] -%> <g:Label ui:field="id" /> <% end -%> <% if options[:timestamps] %> <g:Label ui:field="createdAt" /> <g:Label ui:field="updatedAt" /> <% end -%> </g:FlowPanel> <g:FlowPanel styleName="{style.fields}"> <% for attribute in attributes -%> <% if attribute.type != :has_one && attribute.type != :has_many -%> <% name = attribute.name.classify.sub(/^(.)/){ $1.downcase } -%> <g:FlowPanel styleName="{style.field}"> <g:HTML><label name="<%= name %>"><%= name.underscore.humanize %></label></g:HTML> <g:TextBox ui:field="<%= name %>" name="<%= name %>"/> </g:FlowPanel> <% end -%> <% end -%> </g:FlowPanel> </g:FlowPanel> </ui:UiBinder>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
resty-generators-0.4.0 | lib/generators/resty/templates/View.ui.xml |