mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-23 05:12:09 +08:00
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:
@@ -6,19 +6,23 @@
|
|||||||
margin: 0; padding: 0; border:none; font-size: 1em; width:auto; color: #000;
|
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;
|
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 { background: #000; font-size:15px; padding:5px; }
|
||||||
#themepreview span {color: #ccc; }
|
#themepreview span { color: #ccc; padding-right:5px; }
|
||||||
#themepreview fieldset { margin: 0; padding: 3px; }
|
#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>
|
</style>
|
||||||
<div id="themepreview">
|
<div id="themepreview">
|
||||||
<% using(Html.BeginFormAntiForgeryPost(Url.Action("Preview", new{Controller="Admin", Area="Themes"}), FormMethod.Post, new { @class = "inline" })) { %>
|
<% using(Html.BeginFormAntiForgeryPost(Url.Action("Preview", new{Controller="Admin", Area="Themes"}), FormMethod.Post, new { @class = "inline" })) { %>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<span><%=T("You are previewing ")%></span>
|
<span><%=T("You are previewing: ")%></span>
|
||||||
<%=Html.DropDownList("ThemeName", Model.Themes, new {onChange = "this.form.submit();"})%>
|
<%=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" 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") %></button>
|
<button type="submit" title="<%=_Encoded("Apply")%>" name="submit.Apply" value="<%=_Encoded("Apply")%>"><%=_Encoded("Apply this theme") %></button>
|
||||||
<button type="submit" title="<%=_Encoded("Cancel")%>" name="submit.Cancel" value="<%=_Encoded("Cancel")%>"><%=_Encoded("Cancel")%></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)%>
|
<%=Html.Hidden("ReturnUrl", Context.Request.Url)%>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|||||||
Reference in New Issue
Block a user