Permalink
Browse files

Updated buttons to display with icons

  • Loading branch information...
1 parent f73e2ea commit ed03e01a82d19352cb2d087b31fe6d8fe6ff2634 @chriscantu committed Feb 10, 2012
@@ -56,9 +56,11 @@
<g:render template="form"/>
- <fieldset class="buttons">
- <g:actionSubmit class="btn-primary" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" />
- <g:actionSubmit class="btn-danger" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" formnovalidate="" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
+ <fieldset class="buttons">
+ <button type="submit" class="btn btn-primary" name="_action_update"><i class="icon-pencil icon-white"></i> ${message(code: 'default.button.update.label', default: 'Update')}</button>
+
+
+ <button type="submit" class="btn btn-danger" name="_action_delete" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');"><i class="icon-trash icon-white"></i> ${message(code: 'default.button.delete.label', default: 'Delete')}</button>
</fieldset>
</g:form>
</div>
@@ -46,7 +46,7 @@
<g:if test="${requestInstance?.type}">
<div id="type-label" class="property-label span3"><g:message code="request.type.label" default="Type" />:</div>
- <div class="property-value span5" aria-labelledby="type-label"><g:fieldValue bean="${requestInstance}" field="type"/></div>
+ <div class="property-value span4" aria-labelledby="type-label"><g:fieldValue bean="${requestInstance}" field="type"/></div>
</g:if>
</div>
@@ -55,7 +55,7 @@
<g:if test="${requestInstance?.subject}">
<div id="subject-label" class="property-label span3"><g:message code="request.subject.label" default="Subject" />:</div>
- <div class="property-value span5" aria-labelledby="subject-label"><g:fieldValue bean="${requestInstance}" field="subject"/></div>
+ <div class="property-value span4" aria-labelledby="subject-label"><g:fieldValue bean="${requestInstance}" field="subject"/></div>
</g:if>
</div>
@@ -64,7 +64,7 @@
<g:if test="${requestInstance?.description}">
<div id="description-label" class="property-label span3"><g:message code="request.description.label" default="Description" />:</div>
- <div class="property-value span5" aria-labelledby="description-label"><g:fieldValue bean="${requestInstance}" field="description"/></div>
+ <div class="property-value span4" aria-labelledby="description-label"><g:fieldValue bean="${requestInstance}" field="description"/></div>
</g:if>
</div>
@@ -73,7 +73,7 @@
<g:if test="${requestInstance?.assigned}">
<div id="assigned-label" class="property-label span3"><g:message code="request.assigned.label" default="Assigned" />:</div>
- <div class="property-value span5" aria-labelledby="assigned-label"><g:link controller="user" action="show" id="${requestInstance?.assigned?.id}">${requestInstance?.assigned?.encodeAsHTML()}</g:link></div>
+ <div class="property-value span4" aria-labelledby="assigned-label"><g:link controller="user" action="show" id="${requestInstance?.assigned?.id}">${requestInstance?.assigned?.encodeAsHTML()}</g:link></div>
</g:if>
</div>
@@ -82,7 +82,7 @@
<g:if test="${requestInstance?.dateCreated}">
<div id="dateCreated-label" class="property-label span3"><g:message code="request.dateCreated.label" default="Date Created" />:</div>
- <div class="property-value span5" aria-labelledby="dateCreated-label"><g:formatDate date="${requestInstance?.dateCreated}" /></div>
+ <div class="property-value span4" aria-labelledby="dateCreated-label"><g:formatDate date="${requestInstance?.dateCreated}" /></div>
</g:if>
</div>
@@ -91,7 +91,7 @@
<g:if test="${requestInstance?.lastUpdated}">
<div id="lastUpdated-label" class="property-label span3"><g:message code="request.lastUpdated.label" default="Last Updated" />:</div>
- <div class="property-value span5" aria-labelledby="lastUpdated-label"><g:formatDate date="${requestInstance?.lastUpdated}" /></div>
+ <div class="property-value span4" aria-labelledby="lastUpdated-label"><g:formatDate date="${requestInstance?.lastUpdated}" /></div>
</g:if>
</div>
@@ -100,16 +100,16 @@
<g:if test="${requestInstance?.status}">
<div id="status-label" class="property-label span3"><g:message code="request.status.label" default="Status" />:</div>
- <div class="property-value span5" aria-labelledby="status-label"><g:fieldValue bean="${requestInstance}" field="status"/></div>
+ <div class="property-value span4" aria-labelledby="status-label"><g:fieldValue bean="${requestInstance}" field="status"/></div>
</g:if>
</div>
<g:form>
<p>
<g:hiddenField name="id" value="${requestInstance?.id}" />
- <g:link action="edit" id="${requestInstance?.id}" class="btn btn-primary top-align"><g:message code="default.button.edit.label" default="Edit" /></g:link>
- <g:actionSubmit class="btn-danger" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
+ <g:link action="edit" id="${requestInstance?.id}" class="btn btn-primary top-align"><i class="icon-pencil icon-white"> </i> <g:message code="default.button.edit.label" default="Edit" /></g:link>
+ <button type="submit" class="btn btn-danger" name="_action_delete" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');"><i class="icon-trash icon-white"></i> ${message(code: 'default.button.delete.label', default: 'Delete')}</button>
</p>
</g:form>
</div>
@@ -56,9 +56,11 @@
<g:render template="form"/>
- <fieldset class="buttons">
- <g:actionSubmit class="btn-primary" action="update" value="\${message(code: 'default.button.update.label', default: 'Update')}" />
- <g:actionSubmit class="btn-danger" action="delete" value="\${message(code: 'default.button.delete.label', default: 'Delete')}" formnovalidate="" onclick="return confirm('\${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
+ <fieldset class="buttons">
+ <button type="submit" class="btn btn-primary" name="_action_update"><i class="icon-pencil icon-white"></i> \${message(code: 'default.button.update.label', default: 'Update')}</button>
+
+
+ <button type="submit" class="btn btn-danger" name="_action_delete" onclick="return confirm('\${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');"><i class="icon-trash icon-white"></i> \${message(code: 'default.button.delete.label', default: 'Delete')}</button>
</fieldset>
</g:form>
</div>
@@ -50,28 +50,28 @@
<g:if test="\${${propertyName}?.${p.name}}">
<div id="${p.name}-label" class="property-label span3"><g:message code="${domainClass.propertyName}.${p.name}.label" default="${p.naturalName}" />:</div>
<% if (p.isEnum()) { %>
- <div class="property-value span5" aria-labelledby="${p.name}-label"><g:fieldValue bean="\${${propertyName}}" field="${p.name}"/></div>
+ <div class="property-value span4" aria-labelledby="${p.name}-label"><g:fieldValue bean="\${${propertyName}}" field="${p.name}"/></div>
<% } else if (p.oneToMany || p.manyToMany) { %>
<g:each in="\${${propertyName}.${p.name}}" var="${p.name[0]}">
- <div class="property-value span5" aria-labelledby="${p.name}-label"><g:link controller="${p.referencedDomainClass?.propertyName}" action="show" id="\${${p.name[0]}.id}">\${${p.name[0]}?.encodeAsHTML()}</g:link></div>
+ <div class="property-value span4" aria-labelledby="${p.name}-label"><g:link controller="${p.referencedDomainClass?.propertyName}" action="show" id="\${${p.name[0]}.id}">\${${p.name[0]}?.encodeAsHTML()}</g:link></div>
</g:each>
<% } else if (p.manyToOne || p.oneToOne) { %>
- <div class="property-value span5" aria-labelledby="${p.name}-label"><g:link controller="${p.referencedDomainClass?.propertyName}" action="show" id="\${${propertyName}?.${p.name}?.id}">\${${propertyName}?.${p.name}?.encodeAsHTML()}</g:link></div>
+ <div class="property-value span4" aria-labelledby="${p.name}-label"><g:link controller="${p.referencedDomainClass?.propertyName}" action="show" id="\${${propertyName}?.${p.name}?.id}">\${${propertyName}?.${p.name}?.encodeAsHTML()}</g:link></div>
<% } else if (p.type == Boolean || p.type == boolean) { %>
- <div class="property-value span5" aria-labelledby="${p.name}-label"><g:formatBoolean boolean="\${${propertyName}?.${p.name}}" /></div>
+ <div class="property-value span4" aria-labelledby="${p.name}-label"><g:formatBoolean boolean="\${${propertyName}?.${p.name}}" /></div>
<% } else if (p.type == Date || p.type == java.sql.Date || p.type == java.sql.Time || p.type == Calendar) { %>
- <div class="property-value span5" aria-labelledby="${p.name}-label"><g:formatDate date="\${${propertyName}?.${p.name}}" /></div>
+ <div class="property-value span4" aria-labelledby="${p.name}-label"><g:formatDate date="\${${propertyName}?.${p.name}}" /></div>
<% } else if(!p.type.isArray()) { %>
- <div class="property-value span5" aria-labelledby="${p.name}-label"><g:fieldValue bean="\${${propertyName}}" field="${p.name}"/></div>
+ <div class="property-value span4" aria-labelledby="${p.name}-label"><g:fieldValue bean="\${${propertyName}}" field="${p.name}"/></div>
<% } %>
</g:if>
</div>
<% } %>
<g:form>
<p>
<g:hiddenField name="id" value="\${${propertyName}?.id}" />
- <g:link action="edit" id="\${${propertyName}?.id}" class="btn btn-primary top-align"><g:message code="default.button.edit.label" default="Edit" /></g:link>
- <g:actionSubmit class="btn-danger" action="delete" value="\${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('\${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
+ <g:link action="edit" id="\${${propertyName}?.id}" class="btn btn-primary top-align"><i class="icon-pencil icon-white"> </i> <g:message code="default.button.edit.label" default="Edit" /></g:link>
+ <button type="submit" class="btn btn-danger" name="_action_delete" onclick="return confirm('\${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');"><i class="icon-trash icon-white"></i> \${message(code: 'default.button.delete.label', default: 'Delete')}</button>
</p>
</g:form>
</div>

0 comments on commit ed03e01

Please sign in to comment.