refactoring

This commit is contained in:
2017-01-16 17:38:56 +01:00
parent da08bc5368
commit 8a9b2c1c3e
6 changed files with 1434 additions and 22 deletions

View File

@ -1,5 +1,5 @@
@model PerformerProfile
@{ ViewData["Title"] = "Setup your performer profile"; }
@{ ViewData["Title"] = SR["Your performer profile"]; }
@section header{
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial");
<script src="https://maps.googleapis.com/maps/api/js?key=@ViewBag.GoogleSettings.BrowserApiKey"></script>
@ -103,17 +103,19 @@
});
</script>
}
<h2>@ViewData["Title"].</h2>
<h2>@ViewData["Title"]</h2>
@Html.DisplayFor(model => model)
<form id="FrmSetAct" asp-controller="Manage" asp-action="SetActivity" method="post" class="form-horizontal" role="form">
<h4>@SR["Choose below your main activity"]:</h4>
<h4>@SR["Setup below your activity parameters"]:</h4>
<hr />
<div asp-validation-summary="ValidationSummary.All" class="text-danger" id="valsum"></div>
<div class="form-group">
<label asp-for="AcceptNotifications" class="col-md-2 control-label"></label>
<label asp-for="AcceptNotifications" class="col-md-2 control-label">
@SR["AcceptNotifications"]
</label>
<div class="col-md-10">
<input asp-for="AcceptNotifications" class="form-control" />
<span asp-validation-for="AcceptNotifications" class="text-danger"></span>
@ -121,7 +123,7 @@
</div>
<div class="form-group">
<label asp-for="AcceptPublicContact" class="col-md-2 control-label"></label>
<label asp-for="AcceptPublicContact" class="col-md-2 control-label">@SR["AcceptPublicContact"]</label>
<div class="col-md-10">
<input asp-for="AcceptPublicContact" class="form-control" />
@ -130,16 +132,18 @@
</div>
<div class="form-group">
<label asp-for="AcceptGeoLocalization" class="col-md-2 control-label"></label>
<label asp-for="UseGeoLocalizationToReduceDistanceWithClients" class="col-md-2 control-label">
@SR["UseGeoLocalizationToReduceDistanceWithClients"]
</label>
<div class="col-md-10">
<input asp-for="AcceptGeoLocalization" class="form-control" />
<input asp-for="UseGeoLocalizationToReduceDistanceWithClients" class="form-control" />
<span asp-validation-for="AcceptGeoLocalization" class="text-danger"></span>
<span asp-validation-for="UseGeoLocalizationToReduceDistanceWithClients" class="text-danger"></span>
</div>
</div>
<div class="form-group">
<label asp-for="WebSite" class="col-md-2 control-label"></label>
<label asp-for="WebSite" class="col-md-2 control-label">@SR["WebSite"]</label>
<div class="col-md-10">
<input asp-for="WebSite" class="form-control" />
@ -148,7 +152,7 @@
</div>
<div class="form-group">
<label asp-for="MinDailyCost" class="col-md-2 control-label"></label>
<label asp-for="MinDailyCost" class="col-md-2 control-label">@SR["MinDailyCost"]</label>
<div class="col-md-10">
<input asp-for="MinDailyCost" class="form-control" />
@ -157,7 +161,7 @@
</div>
<div class="form-group">
<label asp-for="MaxDailyCost" class="col-md-2 control-label"></label>
<label asp-for="MaxDailyCost" class="col-md-2 control-label">@SR["MaxDailyCost"]</label>
<div class="col-md-10">
<input asp-for="MaxDailyCost" class="form-control" />
@ -166,7 +170,7 @@
</div>
<div class="form-group">
<label asp-for="Active" class="col-md-2 control-label"></label>
<label asp-for="Active" class="col-md-2 control-label">@SR["ActivateMyProSettings"]</label>
<div class="col-md-10">
<input asp-for="Active" class="form-control" />
@ -175,7 +179,7 @@
</div>
<div class="form-group">
<label asp-for="SIREN" class="col-md-2 control-label"></label>
<label asp-for="SIREN" class="col-md-2 control-label">@SR["SIREN"]</label>
<div class="col-md-10">
<input asp-for="SIREN" class="form-control" />
@ -184,7 +188,7 @@
</div>
<div class="form-group">
<label asp-for="OrganizationAddress.Address" class="col-md-2 control-label"></label>
<label asp-for="OrganizationAddress.Address" class="col-md-2 control-label">@SR["Address"]</label>
<div class="col-md-10">
<input asp-for="OrganizationAddress.Address" class="form-control" type="text" />
@ -195,11 +199,11 @@
</div>
</div>
@Html.Hidden("OrganizationAddress.Latitude") @Html.Hidden("OrganizationAddress.Longitude") @Html.Hidden("PerformerId")
<button type="submit" class="btn btn-default">Save these settings</button>
<button type="submit" class="btn btn-default">@SR["Save these settings"]</button>
</form>
<form asp-controller="Manage" asp-action="UnsetActivity" method="post" class="form-horizontal" role="form">
@Html.Hidden("PerfomerId")
<button type="submit" class="btn btn-default">Remove my professional profile</button>
<button type="submit" class="btn btn-default">@SR["UnsetActivity"]</button>
</form>