A little lipstick for the theme preview UI. Will need a little work/cleanup in the near future but it's good for a Friday show and tell.

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4046094
This commit is contained in:
skewed
2010-01-29 19:37:28 +00:00
parent a575eb759f
commit bc46cb3692

View File

@@ -6,19 +6,23 @@
margin: 0; padding: 0; border:none; font-size: 1em; width:auto; color: #000;
font-family:Frutiger,"Frutiger Linotype",Univers,Calibri,"Gill Sans","Gill Sans MT","Myriad Pro",Myriad,"DejaVu Sans Condensed","Liberation Sans","Nimbus Sans L",Tahoma,Geneva,"Helvetica Neue",Helvetica,Arial,sans-serif;
}
#themepreview { background: #000; font-size:15px; }
#themepreview span {color: #ccc; }
#themepreview { background: #000; font-size:15px; padding:5px; }
#themepreview span { color: #ccc; padding-right:5px; }
#themepreview fieldset { margin: 0; padding: 3px; }
#themepreview button { font-size: .8em; }
#themepreview button { font-size: 13px; padding:0 3px; margin-left:10px; }
#themepreview button.preview { margin-left:0; }
html.dyn #themepreview button.preview { display:none; }
#themepreview a { color:#ccc; float:right; line-height:21px; }
</style>
<div id="themepreview">
<% using(Html.BeginFormAntiForgeryPost(Url.Action("Preview", new{Controller="Admin", Area="Themes"}), FormMethod.Post, new { @class = "inline" })) { %>
<fieldset>
<span><%=T("You are previewing ")%></span>
<span><%=T("You are previewing: ")%></span>
<%=Html.DropDownList("ThemeName", Model.Themes, new {onChange = "this.form.submit();"})%>
<button type="submit" title="<%=_Encoded("Preview")%>" name="submit.Preview" value="<%=_Encoded("Preview")%>"><%=_Encoded("Preview")%></button>
<button type="submit" title="<%=_Encoded("Apply")%>" name="submit.Apply" value="<%=_Encoded("Apply")%>"><%=_Encoded("Apply") %></button>
<button type="submit" title="<%=_Encoded("Cancel")%>" name="submit.Cancel" value="<%=_Encoded("Cancel")%>"><%=_Encoded("Cancel")%></button>
<button type="submit" class="preview" title="<%=_Encoded("Preview")%>" name="submit.Preview" value="<%=_Encoded("Preview")%>"><%=_Encoded("Preview")%></button>
<button type="submit" title="<%=_Encoded("Apply")%>" name="submit.Apply" value="<%=_Encoded("Apply")%>"><%=_Encoded("Apply this theme") %></button>
<%=Html.ActionLink(T("Back to Admin").ToString(), "Index", new { Controller = "Admin", Area = "Themes" })%>
<%--<button type="submit" class="cancel" title="<%=_Encoded("Cancel")%>" name="submit.Cancel" value="<%=_Encoded("Cancel")%>"><%=_Encoded("Cancel")%></button>--%>
<%=Html.Hidden("ReturnUrl", Context.Request.Url)%>
</fieldset>
<% } %>