summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-03-25 12:36:01 -0400
committerMichael <[email protected]>2017-03-25 12:36:01 -0400
commitd1cd3997b12b88780603449596f931c5ab352870 (patch)
tree1911ec6682a840976404fb94da68805b559eab2d
parentc5fe379bc02b18a6b84e10a5e24a99f6e5ce39d8 (diff)
downloadproject-unite-d1cd3997b12b88780603449596f931c5ab352870.tar.gz
project-unite-d1cd3997b12b88780603449596f931c5ab352870.tar.bz2
project-unite-d1cd3997b12b88780603449596f931c5ab352870.zip
Fix post view.
-rw-r--r--Project-Unite/Views/Skins/PostSkin.cshtml10
1 files changed, 5 insertions, 5 deletions
diff --git a/Project-Unite/Views/Skins/PostSkin.cshtml b/Project-Unite/Views/Skins/PostSkin.cshtml
index 840d3ac..fc57e05 100644
--- a/Project-Unite/Views/Skins/PostSkin.cshtml
+++ b/Project-Unite/Views/Skins/PostSkin.cshtml
@@ -7,15 +7,15 @@
<p>Want to post your skin to the repository? Alright, just fill out this form and we'll do everything for you.</p>
-@using (Html.BeginForm())
+@using (Html.BeginForm("PostSkin", "Skins", null, FormMethod.Post, new { enctype = "multipart/form-data" }))
{
<div class="panel panel-danger">
@Html.ValidationSummary()
</div>
@Html.AntiForgeryToken()
<table class="table">
- <tr style="width:35%;">
- <td><strong>Title:</strong></td>
+ <tr>
+ <td style="width:35%;"><strong>Title:</strong></td>
<td>@Html.TextBoxFor(Model=>Model.Title, new{@class="form-control"})</td>
</tr>
<tr>
@@ -28,11 +28,11 @@
</tr>
<tr>
<td><strong>Skin file:</strong><br/>This is the actual skin - you can upload it to the repository and we'll host it for you. Skins are exported by the Skin Loader into <pre>My Documents\ShiftOS_Shared\skins</pre>.</td>
- <td>@Html.EditorFor(Model=>Model.SkinFile, new { @class = "form-control" })</td>
+ <td>@Html.TextBoxFor(Model=>Model.SkinFile, new { @class = "form-control", type="file" })</td>
</tr>
<tr>
<td><strong>Screenshot:</strong><br />Here you can upload a main screenshot to show on the repo index and view skin pages. This isn't required, but is recommended so that users can see what your skin looks like before applying it.</td>
- <td>@Html.EditorFor(Model => Model.ScreenshotFile, new { @class = "form-control" })</td>
+ <td>@Html.TextBoxFor(Model => Model.ScreenshotFile, new { @class = "form-control", type="file" })</td>
</tr>
<tr>
<td></td>