| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- @using CD67.FicheCollege.MVC.Models
- @model ActionEduActeurViewModel
- @{
- ViewBag.Title = "Création";
- Layout = "~/Views/Shared/_Layout.cshtml";
- ActionEduActeur actionEduActeur = Model.Obj;
- }
- <header>
- <h2>Action '@actionEduActeur.ActionEdu.Nom': Ajouter un acteur</h2>
- </header>
- @using (Html.BeginForm())
- {
- @Html.AntiForgeryToken()
-
- <div class="form-horizontal">
- @Html.ValidationSummary(true, "", new { @class = "text-danger" })
- @Html.HiddenFor(model => actionEduActeur.Id)
- @Html.HiddenFor(model => actionEduActeur.ActionEduId)
-
- <div class="form-group">
- @Html.LabelFor(model => actionEduActeur.Nom, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- <input id="actionEduActeur_nom" class="form-control picker" name="actionEduActeur.nom" data-picker="structure.description">
- @Html.ValidationMessageFor(model => actionEduActeur.Nom, "", new { @class = "text-danger" })
- <input id="actionEduActeur_Sid" name="actionEduActeur.Sid" class="picker" value="" data-picker="structure.id" type="hidden">
- <div>
- <p>
- <a class="modal-window cboxElement" href="http://referentiel.bas-rhin.fr/picker/cd67/org67/" title="Selection structure (nouvelle fenetre)">
- Sélectionner un service ou une mission du CD67
- </a>
- </p>
- </div>
- </div>
- </div>
- <div class="form-group">
- @Html.LabelFor(model => actionEduActeur.RoleId, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.DropDownListFor(model => actionEduActeur.RoleId, Model.Sel_Role, htmlAttributes: new { @class = "form-control" })
- @Html.ValidationMessageFor(model => actionEduActeur.RoleId, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group">
- @Html.LabelFor(model => actionEduActeur.Commentaire, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.EditorFor(model => actionEduActeur.Commentaire, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => actionEduActeur.Commentaire, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group">
- <span class="col-md-offset-2 col-md-4">
- <input type="submit" value="Créer" class="btn btn-default" />
- </span>
- <span class="col-md-4">
- <a href="@Url.Action("Details", "ActionsEdu", new { id = actionEduActeur.ActionEduId })">Annuler</a>
- </span>
- </div>
- </div>
- }
- @section Scripts {
- <script type="text/javascript">
- $.event.special.inputchange = {
- setup: function () {
- var self = this, val;
- $.data(this, 'timer', window.setInterval(function () {
- val = self.value;
- if ($.data(self, 'cache') != val) {
- $.data(self, 'cache', val);
- $(self).trigger('inputchange');
- }
- }, 20));
- },
- teardown: function () {
- window.clearInterval($.data(this, 'timer'));
- },
- add: function () {
- $.data(this, 'cache', this.value);
- }
- };
- $("#actionEduActeur_Sid").on('inputchange', function () {
- $("#actionEduActeur_nom").prop("readonly", true);
- });
- </script>
- @Scripts.Render("~/bundles/jqueryval")
- }
|