The next generation of the Teknik Services. Written in ASP.NET.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

57 lines
2.7 KiB

@model Teknik.Areas.Paste.ViewModels.PasteCreateViewModel
@using Teknik.Helpers
@Styles.Render("~/Content/paste")
@Scripts.Render("~/bundles/paste")
<div class="container">
<div class="row">
<div class="col-sm-12">
<form class="form-horizontal" name="editor" method="post" action="@Url.SubRouteUrl("paste", "Paste.Action", new { action = "Paste" })">
@Html.AntiForgeryToken()
<div class="form-group">
<div class="col-sm-10 col-sm-offset-1">
<textarea class="form-control" name="Content" id="content" rows="20"></textarea>
</div>
</div>
<div class="form-group">
<label for="title" class="col-sm-2 col-sm-offset-1 control-label">Title</label>
<div class="col-sm-4">
<input type="text" class="form-control" name="Title" id="title" placeholder="My Awesome Paste">
</div>
<div class="col-sm-1 col-sm-offset-2">
<button type="submit" class="btn btn-primary" id="pasteSubmit">Submit Paste</button>
</div>
</div>
<div class="form-group">
<label for="syntax" class="col-sm-2 col-sm-offset-1 control-label">Syntax</label>
<div class="col-sm-4">
<select class="form-control" name="Syntax" id="syntax">
<option value="auto-select">Auto Select</option>
@foreach (KeyValuePair<string, string> format in Constants.HIGHLIGHTFORMATS)
{
<option value="@format.Value">@format.Key</option>
}
</select>
</div>
</div>
<div class="form-group">
<label for="password" class="col-sm-2 col-sm-offset-1 control-label">Password</label>
<div class="col-sm-4">
<input type="password" class="form-control" name="Password" id="password" placeholder="Secret">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-3 col-sm-6">
<div class="checkbox">
<label>
<input type="checkbox" name="Hide" id="hide"> Hide from Public List
</label>
</div>
</div>
</div>
</form>
</div>
</div>
</div>