mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Some UI cleanup on the setup page
--HG-- branch : dev
This commit is contained in:
@@ -1,33 +1,30 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<SetupViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
||||
<%@ Import Namespace="Orchard.Setup.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage("Orchard " + _Encoded("Setup"))%></h1>
|
||||
<div class="">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<h1><%=Html.TitleForPage(_Encoded("Get Started").ToHtmlString())%></h1>
|
||||
<%
|
||||
using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<fieldset>
|
||||
<h2><%=_Encoded("Please answer a few questions to configure your site.")%></h2>
|
||||
<fieldset class="site">
|
||||
<div>
|
||||
<%=Html.LabelFor(svm => svm.SiteName) %>
|
||||
<label for="SiteName"><%=_Encoded("What is the name of your site?") %></label>
|
||||
<%=Html.EditorFor(svm => svm.SiteName) %>
|
||||
<%=Html.ValidationMessage("SiteName", "*") %>
|
||||
</div>
|
||||
<div>
|
||||
<%=Html.LabelFor(svm => svm.AdminUsername) %>
|
||||
<label for="AdminUsername"><%=_Encoded("Choose a user name:") %></label>
|
||||
<%=Html.EditorFor(svm => svm.AdminUsername)%>
|
||||
<%=Html.ValidationMessage("AdminUsername", "*")%>
|
||||
</div>
|
||||
<div>
|
||||
<%=Html.LabelFor(svm => svm.AdminPassword) %>
|
||||
<label for="AdminPassword"><%=_Encoded("Choose a password:") %></label>
|
||||
<%=Html.PasswordFor(svm => svm.AdminPassword) %>
|
||||
<%=Html.ValidationMessage("AdminPassword", "*") %>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<fieldset class="data">
|
||||
<legend><%=_Encoded("How would you like to store your data?") %></legend>
|
||||
<%=Html.ValidationMessage("DatabaseOptions", "Unable to setup data storage") %>
|
||||
<div>
|
||||
<input type="radio" name="databaseOptions" id="builtin" value="true" checked="checked" />
|
||||
@@ -36,12 +33,19 @@ using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<div>
|
||||
<input type="radio" name="databaseOptions" id="sql" value="false" />
|
||||
<label for="sql" class="forcheckbox"><%=_Encoded("Use an existing SQL Server (or SQL Express) database") %></label>
|
||||
<!-- Should add some javascript to hide the connection string field if that option isn't selected -->
|
||||
<label for="connection"><%=_Encoded("Connection string") %></label>
|
||||
<%=Html.EditorFor(svm => svm.DatabaseConnectionString)%>
|
||||
<span>
|
||||
<label for="DatabaseConnectionString"><%=_Encoded("Connection string") %></label>
|
||||
<%=Html.EditorFor(svm => svm.DatabaseConnectionString)%>
|
||||
</span>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<input class="button" type="submit" value="<%=_Encoded("Finish Setup") %>" />
|
||||
</fieldset><%
|
||||
} %>
|
||||
} %>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$("#sql").change(function() { $(this).siblings("span").slideDown(200).find("input").focus(); });
|
||||
$("#builtin").change(function() { $("#sql").siblings("span").slideUp(200); });
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user