diff --git a/AYA.SlnSynor/AYA.SlnSynor.WCF/ISinortCatalogos.cs b/AYA.SlnSynor/AYA.SlnSynor.WCF/ISinortCatalogos.cs index 8404cedd2..54e2f5b83 100644 --- a/AYA.SlnSynor/AYA.SlnSynor.WCF/ISinortCatalogos.cs +++ b/AYA.SlnSynor/AYA.SlnSynor.WCF/ISinortCatalogos.cs @@ -198,7 +198,10 @@ namespace AYA.SlnSinort.WCF BaseJson InsertarActualizarAreaAplicacionDocumentoTecnico(AreaAplicacionDocumentoTecnico model); #endregion - + #region Encuestas + [OperationContract] + List ObtenerTipoPregunta(); + #endregion } [DataContract] diff --git a/AYA.SlnSynor/AYA.SlnSynor.WCF/SinortCatalogos.svc.cs b/AYA.SlnSynor/AYA.SlnSynor.WCF/SinortCatalogos.svc.cs index e564495d6..a2c2e109f 100644 --- a/AYA.SlnSynor/AYA.SlnSynor.WCF/SinortCatalogos.svc.cs +++ b/AYA.SlnSynor/AYA.SlnSynor.WCF/SinortCatalogos.svc.cs @@ -825,5 +825,21 @@ namespace AYA.SlnSinort.WCF } #endregion + #region Encuesta + public List ObtenerTipoPregunta() + { + List respuesta = null; + try + { + respuesta = new EncuestaDAL().ObtenerTipoPregunta(); + + } + catch (Exception ex) + { + log.Error(ex); + } + return respuesta; + } + #endregion } } diff --git a/AYA.SlnSynor/AYA.SlnSynor/AYA.SlnSinort.csproj b/AYA.SlnSynor/AYA.SlnSynor/AYA.SlnSinort.csproj index fba193252..95f766804 100644 --- a/AYA.SlnSynor/AYA.SlnSynor/AYA.SlnSinort.csproj +++ b/AYA.SlnSynor/AYA.SlnSynor/AYA.SlnSinort.csproj @@ -6156,8 +6156,10 @@ + + @@ -7167,6 +7169,7 @@ + @@ -7266,6 +7269,8 @@ + + @@ -7315,6 +7320,8 @@ + + @@ -7339,6 +7346,7 @@ + @@ -7446,6 +7454,7 @@ + diff --git a/AYA.SlnSynor/AYA.SlnSynor/App_Start/BundleConfig.cs b/AYA.SlnSynor/AYA.SlnSynor/App_Start/BundleConfig.cs index ce24e103f..01ada5808 100644 --- a/AYA.SlnSynor/AYA.SlnSynor/App_Start/BundleConfig.cs +++ b/AYA.SlnSynor/AYA.SlnSynor/App_Start/BundleConfig.cs @@ -27,6 +27,10 @@ namespace AYA.SlnSinort .Include("~/Scripts/jQuery.FileUpload/jquery.fileupload.js") .Include("~/Scripts/jQuery.FileUpload/jquery.fileupload-process.js") .Include("~/Scripts/jQuery.FileUpload/jquery.fileupload-validate.js")); + bundles.Add(new ScriptBundle("~/bundles/jquery-richtext") + .Include("~/Scripts/jquery.richtext.min.js")); + bundles.Add(new ScriptBundle("~/bundles/jquery-survey") + .Include("~/Scripts/survey.jquery.js")); bundles.Add(new ScriptBundle("~/bundles/timepicki").Include("~/Scripts/timepicki.js")); bundles.Add(new ScriptBundle("~/bundles/jquery-fullCalendar").Include("~/Scripts/fullcalendar/fullcalendar.min.js").Include("~/Scripts/fullcalendar/locale/es.js")); @@ -52,6 +56,8 @@ namespace AYA.SlnSinort .Include("~/Content/toastr.css") .Include("~/Content/DataTables-1.10.0/css/jquery.dataTables.css") .Include("~/Content/jQuery.FileUpload/css/jquery.fileupload.css") + .Include("~/Content/richtext.min.css") + .Include("~/Content/survey.css") .Include("~/Content/fullcalendar.css")); bundles.Add(new ScriptBundle("~/Script-Global") diff --git a/AYA.SlnSynor/AYA.SlnSynor/App_Start/RouteConfig.cs b/AYA.SlnSynor/AYA.SlnSynor/App_Start/RouteConfig.cs index 5b147802c..11cfa6171 100644 --- a/AYA.SlnSynor/AYA.SlnSynor/App_Start/RouteConfig.cs +++ b/AYA.SlnSynor/AYA.SlnSynor/App_Start/RouteConfig.cs @@ -16,7 +16,7 @@ namespace AYA.SlnSinort routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", - defaults: new { controller = "Login", action = "Login", id = UrlParameter.Optional } + defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } ); } diff --git a/AYA.SlnSynor/AYA.SlnSynor/Content/richtext.min.css b/AYA.SlnSynor/AYA.SlnSynor/Content/richtext.min.css new file mode 100644 index 000000000..0955cf93b --- /dev/null +++ b/AYA.SlnSynor/AYA.SlnSynor/Content/richtext.min.css @@ -0,0 +1 @@ +.richText {position: relative;background-color: #FAFAFA;border: #EFEFEF solid 1px;color: #333333;width: 380px;}.richText .richText-form {font-family: Calibri,Verdana,Helvetica,sans-serif;}.richText .richText-form label {display: block;padding: 10px 15px;}.richText .richText-form input[type="text"], .richText .richText-form input[type="file"], .richText .richText-form input[type="number"], .richText .richText-form select {padding: 10px 15px;border: #999999 solid 1px;min-width: 200px;width: 100%;}.richText .richText-form select {cursor: pointer;}.richText .richText-form button {margin: 10px 0;padding: 10px 15px;background-color: #3498db;border: none;color: #FAFAFA;cursor: pointer;-webkit-appearance: none;-moz-appearance: none;appearance: none;-webkit-border-radius: 4px;-moz-border-radius: 4px;border-radius: 4px;}.richText .richText-toolbar {min-height: 20px;border-bottom: #EFEFEF solid 1px;}.richText .richText-toolbar ul li {float: left;display: block;list-style: none;}.richText .richText-toolbar ul li a {display: block;padding: 10px 15px;border-right: #EFEFEF solid 1px;cursor: pointer;-webkit-transition: background-color 0.4s;-moz-transition: background-color 0.4s;transition: background-color 0.4s;}.richText .richText-toolbar ul li a .fa, .richText .richText-toolbar ul li a .fas, .richText .richText-toolbar ul li a .far, .richText .richText-toolbar ul li a svg {pointer-events: none;}.richText .richText-toolbar ul li a .richText-dropdown-outer {display: none;position: absolute;top: 0;left: 0;right: 0;bottom: 0;background-color: rgba(0, 0, 0, 0.3);cursor: default;}.richText .richText-toolbar ul li a .richText-dropdown-outer .richText-dropdown {position: relative;display: block;margin: 3% auto 0 auto;background-color: #FAFAFA;border: #EFEFEF solid 1px;min-width: 100px;width: 300px;max-width: 90%;-webkit-box-shadow: 0 0 5px 0 #333;-moz-box-shadow: 0 0 5px 0 #333;box-shadow: 0 0 5px 0 #333;}.richText .richText-toolbar ul li a .richText-dropdown-outer .richText-dropdown .richText-dropdown-close {position: absolute;top: 0;right: -23px;background: #FFF;color: #333;cursor: pointer;font-size: 20px;text-align: center;width: 20px;}.richText .richText-toolbar ul li a .richText-dropdown-outer ul.richText-dropdown {list-style: none;}.richText .richText-toolbar ul li a .richText-dropdown-outer ul.richText-dropdown li {display: block;float: none;font-family: Calibri,Verdana,Helvetica,sans-serif;}.richText .richText-toolbar ul li a .richText-dropdown-outer ul.richText-dropdown li a {display: block;padding: 10px 15px;border-bottom: #EFEFEF solid 1px;}.richText .richText-toolbar ul li a .richText-dropdown-outer ul.richText-dropdown li a:hover {background-color: #FFFFFF;}.richText .richText-toolbar ul li a .richText-dropdown-outer ul.richText-dropdown li.inline {margin: 10px 6px;float: left;}.richText .richText-toolbar ul li a .richText-dropdown-outer ul.richText-dropdown li.inline a {display: block;padding: 0;margin: 0;border: none;-webkit-border-radius: 50%;-moz-border-radius: 50%;border-radius: 50%;-webkit-box-shadow: 0 0 10px 0 #999;-moz-box-shadow: 0 0 10px 0 #999;box-shadow: 0 0 10px 0 #999;}.richText .richText-toolbar ul li a .richText-dropdown-outer ul.richText-dropdown li.inline a span {display: block;height: 30px;width: 30px;-webkit-border-radius: 50%;-moz-border-radius: 50%;border-radius: 50%;}.richText .richText-toolbar ul li a .richText-dropdown-outer div.richText-dropdown {padding: 10px 15px;}.richText .richText-toolbar ul li a:hover {background-color: #FFFFFF;}.richText .richText-toolbar ul li[data-disable="true"] {opacity: 0.1;}.richText .richText-toolbar ul li[data-disable="true"] a {cursor: default;}.richText .richText-toolbar ul li:not([data-disable="true"]).is-selected .richText-dropdown-outer {display: block;}.richText .richText-toolbar ul:after {display: block;content: "";clear: both;}.richText .richText-toolbar:last-child {font-size: 12px;}.richText .richText-toolbar:after {display: block;clear: both;content: "";}.richText .richText-editor {padding: 20px;background-color: #FFFFFF;border-left: #FFFFFF solid 2px;font-family: Calibri,Verdana,Helvetica,sans-serif;height: 300px;outline: none;overflow-y: scroll;overflow-x: auto;}.richText .richText-editor ul, .richText .richText-editor ol {margin: 10px 25px;}.richText .richText-editor table {margin: 10px 0;border-spacing: 0;width: 100%;}.richText .richText-editor table td, .richText .richText-editor table th {padding: 10px;border: #EFEFEF solid 1px;}.richText .richText-editor:focus {border-left: #3498db solid 2px;}.richText .richText-initial {margin-bottom: -4px;padding: 10px;background-color: #282828;border: none;color: #33FF33;font-family: Monospace,Calibri,Verdana,Helvetica,sans-serif;max-width: 100%;min-width: 100%;width: 100%;min-height: 400px;height: 400px;}.richText .richText-help {float: right;display: block;padding: 10px 15px;cursor: pointer;}.richText .richText-undo, .richText .richText-redo {float: left;display: block;padding: 10px 15px;border-right: #EFEFEF solid 1px;cursor: pointer;}.richText .richText-undo.is-disabled, .richText .richText-redo.is-disabled {opacity: 0.4;}.richText .richText-help-popup a {color: #3498db;text-decoration: underline;}.richText .richText-help-popup hr {margin: 10px auto 5px auto;border: none;border-top: #EFEFEF solid 1px;}.richText .richText-list.list-rightclick {position: absolute;background-color: #FAFAFA;border-right: #EFEFEF solid 1px;border-bottom: #EFEFEF solid 1px;}.richText .richText-list.list-rightclick li {padding: 5px 7px;cursor: pointer;list-style: none;} \ No newline at end of file diff --git a/AYA.SlnSynor/AYA.SlnSynor/Content/richtext.scss b/AYA.SlnSynor/AYA.SlnSynor/Content/richtext.scss new file mode 100644 index 000000000..ef0779d7f --- /dev/null +++ b/AYA.SlnSynor/AYA.SlnSynor/Content/richtext.scss @@ -0,0 +1,286 @@ +$highlight: #3498db; + +.richText { + position: relative; + background-color: #FAFAFA; + border: #EFEFEF solid 1px; + color: #333333; + width: 100%; + + .richText-form { + font-family: Calibri,Verdana,Helvetica,sans-serif; + label { + display: block; + padding: 10px 15px; + } + + input[type="text"], input[type="file"], input[type="number"], select { + padding: 10px 15px; + border: #999999 solid 1px; + min-width: 200px; + width: 100%; + } + + select { + cursor: pointer; + } + + button { + margin: 10px 0; + padding: 10px 15px; + background-color: $highlight; + border: none; + color: #FAFAFA; + cursor: pointer; + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; + } + } + + .richText-toolbar { + min-height: 20px; + border-bottom: #EFEFEF solid 1px; + + ul { + li { + float: left; + display: block; + list-style: none; + + a { + display: block; + padding: 10px 15px; + border-right: #EFEFEF solid 1px; + cursor: pointer; + -webkit-transition: background-color 0.4s; + -moz-transition: background-color 0.4s; + transition: background-color 0.4s; + + .fa, .fas, .far, svg { + pointer-events: none; + } + + .richText-dropdown-outer { + display: none; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: rgba(0,0,0,0.3); + cursor: default; + + .richText-dropdown { + position:relative; + display: block; + margin: 3% auto 0 auto; + background-color: #FAFAFA; + border: #EFEFEF solid 1px; + min-width: 100px; + width: 300px; + max-width: 90%; + -webkit-box-shadow:0 0 5px 0 #333; + -moz-box-shadow:0 0 5px 0 #333; + box-shadow:0 0 5px 0 #333; + + .richText-dropdown-close { + position: absolute; + top: 0; + right: -23px; + background: #FFF; + color: #333; + cursor: pointer; + font-size: 20px; + text-align: center; + width: 20px; + } + } + + + ul.richText-dropdown { + list-style: none; + + li { + display: block; + float: none; + font-family: Calibri,Verdana,Helvetica,sans-serif; + + a { + display: block; + padding: 10px 15px; + border-bottom: #EFEFEF solid 1px; + } + + a:hover { + background-color: #FFFFFF; + } + } + + li.inline{ + margin: 10px 6px; + float: left; + + a { + display: block; + padding: 0; + margin: 0; + border: none; + -webkit-border-radius: 50%; + -moz-border-radius: 50%; + border-radius: 50%; + -webkit-box-shadow: 0 0 10px 0 #999; + -moz-box-shadow: 0 0 10px 0 #999; + box-shadow: 0 0 10px 0 #999; + + span { + display: block; + height: 30px; + width: 30px; + -webkit-border-radius: 50%; + -moz-border-radius: 50%; + border-radius: 50%; + } + } + } + } + + div.richText-dropdown { + padding: 10px 15px; + + } + } + + + } + + a:hover { + background-color: #FFFFFF; + } + } + + li[data-disable="true"] { + opacity: 0.1; + a { + cursor: default; + } + } + + li:not([data-disable="true"]).is-selected .richText-dropdown-outer { + display: block; + } + } + + ul:after { + display: block; + content: ""; + clear: both; + } + } + + .richText-toolbar:last-child { + font-size: 12px; + } + + .richText-toolbar:after{ + display: block; + clear: both; + content:""; + } + + .richText-editor { + padding: 20px; + background-color: #FFFFFF; + border-left: #FFFFFF solid 2px; + font-family: Calibri,Verdana,Helvetica,sans-serif; + height: 300px; + outline: none; + overflow-y: scroll; + overflow-x: auto; + + ul, ol { + margin: 10px 25px; + } + + table { + margin:10px 0; + border-spacing:0; + width:100%; + + td, th { + padding: 10px; + border:#EFEFEF solid 1px; + } + } + } + + + .richText-editor:focus { + border-left: $highlight solid 2px; + } + + .richText-initial { + margin-bottom: -4px; + padding: 10px; + background-color: #282828; + border: none; + color: #33FF33; + font-family: Monospace,Calibri,Verdana,Helvetica,sans-serif; + max-width: 100%; + min-width: 100%; + width: 100%; + min-height: 400px; + height: 400px; + } + + .richText-help { + float: right; + display: block; + padding: 10px 15px; + cursor: pointer; + } + + .richText-undo, + .richText-redo { + float: left; + display: block; + padding: 10px 15px; + border-right: #EFEFEF solid 1px; + cursor: pointer; + } + .richText-undo.is-disabled, + .richText-redo.is-disabled { + opacity: 0.4; + } + + .richText-help-popup { + a { + color:#3498db; + text-decoration:underline; + } + + hr { + margin: 10px auto 5px auto; + border:none; + border-top: #EFEFEF solid 1px; + } + } + + .richText-list.list-rightclick { + position: absolute; + background-color: #FAFAFA; + border-right: #EFEFEF solid 1px; + border-bottom: #EFEFEF solid 1px; + + li { + padding: 5px 7px; + cursor: pointer; + list-style: none; + } + } + +} + diff --git a/AYA.SlnSynor/AYA.SlnSynor/Content/survey.css b/AYA.SlnSynor/AYA.SlnSynor/Content/survey.css new file mode 100644 index 000000000..ff928107e --- /dev/null +++ b/AYA.SlnSynor/AYA.SlnSynor/Content/survey.css @@ -0,0 +1,364 @@ +/*! + * surveyjs - Survey JavaScript library v1.0.35 + * Copyright (c) 2015-2018 Devsoft Baltic OÜ - http://surveyjs.io/ + * License: MIT (http://www.opensource.org/licenses/mit-license.php) + */ +.sv_window { + position: fixed; + bottom: 3px; + right: 10px; + background-color: cadetblue; + padding: 1px; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 14px; + font-style: normal; + font-weight: 400; + line-height: 1.42857143; + text-align: left; + text-align: start; + text-decoration: none; + text-shadow: none; + text-transform: none; + letter-spacing: normal; + word-break: normal; + word-spacing: normal; + word-wrap: normal; + white-space: normal; + background-color: #fff; + -webkit-background-clip: padding-box; + background-clip: padding-box; + border: 1px solid #ccc; + border: 1px solid rgba(0, 0, 0, 0.2); + border-radius: 6px; + -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); + box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); + line-break: auto; } + +.sv_window_title { + padding: 8px 14px; + margin: 0; + font-size: 14px; + background-color: #f7f7f7; + border-bottom: 1px solid #ebebeb; + border-radius: 5px 5px 0 0; } + +.sv_window_content { + padding: 8px; + margin: 0; } + +.sv_window_title a, +.sv_window_title a:link, +.sv_window_title a:visited { + text-decoration: none; + font-size: 14px; + font-style: normal; + color: black; } + +.sv_main.sv_frame .sv_container { + max-width: 80%; + margin: auto; + padding: 0 1em; } + .sv_main.sv_frame .sv_container .sv_header { + padding-top: 5em; + padding-bottom: 1em; } + +.sv_main { + background-color: #f4f4f4; } + .sv_main hr { + border-bottom: 1px solid #e7e7e7; } + .sv_main input[type="button"], + .sv_main button { + color: white; + background-color: #1ab394; } + .sv_main input[type="button"]:hover, + .sv_main button:hover { + background-color: #179d82; } + .sv_main .sv_q_other input, + .sv_main .sv_q_text_root, + .sv_main .sv_q_dropdown_control, + .sv_main input[type="text"], + .sv_main select, + .sv_main textarea { + border: 1px solid #e7e7e7; + color: #6d7072; + background-color: white; } + .sv_main .sv_q_other input:focus, + .sv_main .sv_q_text_root:focus, + .sv_main .sv_q_dropdown_control:focus, + .sv_main input[type="text"]:focus, + .sv_main select:focus, + .sv_main textarea:focus { + border: 1px solid #1ab394; } + .sv_main .sv_select_wrapper { + background-color: white; } + .sv_main .sv_select_wrapper:before { + background-color: #1ab394; } + .sv_main .sv_header { + color: #6d7072; } + .sv_main .sv_custom_header { + background-color: #e7e7e7; } + .sv_main .sv_container { + color: #6d7072; } + .sv_main .sv_body { + background-color: white; + border-top: 2px solid #1ab394; } + .sv_main .sv_progress { + background-color: #e7e7e7; } + .sv_main .sv_progress_bar { + background-color: #1ab394; } + .sv_main .sv_p_root > .sv_row { + border-bottom: 1px solid #e7e7e7; } + .sv_main .sv_p_root > .sv_row:nth-child(odd) { + background-color: white; } + .sv_main .sv_p_root > .sv_row:nth-child(even) { + background-color: #f4f4f4; } + .sv_main .sv_q_erbox:not([style*="display: none"]):not([style*="display:none"]) { + border: 1px solid #ed5565; + background-color: #fcdfe2; + color: #ed5565; } + .sv_main .sv_q_erbox:not([style*="display: none"]):not([style*="display:none"]) + input, + .sv_main .sv_q_erbox:not([style*="display: none"]):not([style*="display:none"]) + textarea, + .sv_main .sv_q_erbox:not([style*="display: none"]):not([style*="display:none"]) + .sv_select_wrapper select { + border: 1px solid #ed5565; } + .sv_main .sv_q_erbox:not([style*="display: none"]):not([style*="display:none"]) + input:focus, + .sv_main .sv_q_erbox:not([style*="display: none"]):not([style*="display:none"]) + textarea:focus, + .sv_main .sv_q_erbox:not([style*="display: none"]):not([style*="display:none"]) + .sv_select_wrapper select:focus { + outline: #ed5565 auto 5px; } + .sv_main table.sv_q_matrix tr, + .sv_main table.sv_q_matrix_dropdown tr, + .sv_main table.sv_q_matrix_dynamic tr { + border-bottom: 1px solid #e7e7e7; } + .sv_main .sv_q_m_cell_selected { + color: white; + background-color: #179d82; } + .sv_main .sv_q_rating_item.active .sv_q_rating_item_text { + background-color: #179d82; + border-color: #179d82; + color: white; } + .sv_main .sv_q_rating_item .sv_q_rating_item_text { + border: 1px solid #e7e7e7; } + .sv_main .sv_q_rating_item .sv_q_rating_item_text:hover { + border: 1px solid #179d82; } + .sv_main .sv_q_imgsel.checked label > div { + background-color: #1ab394; } + +.sv_main { + position: relative; + width: 100%; + font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif; + font-size: 14px; } + .sv_main hr { + border: none; } + .sv_main input[type="button"], + .sv_main button { + font-size: 0.85em; + font-weight: bold; + line-height: 2em; + border: none; + min-width: 100px; + cursor: pointer; + padding: 0 2em; + border-radius: 2px; } + .sv_main .sv_custom_header { + position: absolute; + width: 100%; + height: 74%; + max-height: 275px; } + .sv_main .sv_container { + position: relative; } + .sv_main .sv_container .sv_header { + padding: 1em; } + .sv_main .sv_container .sv_header h3 { + font-size: 2em; + font-weight: 300; + text-align: left; + margin: 0; } + .sv_main .sv_container .sv_body { + padding: 1em 1em 5em 1em; } + .sv_main .sv_container .sv_body.sv_completed_page { + text-align: center; + padding: 5em 1em; } + .sv_main .sv_container .sv_body.sv_completed_page > h3 { + margin: 0; + font-size: 30px; + font-weight: 300; } + .sv_main .sv_container .sv_body .sv_progress { + height: 0.3em; } + .sv_main .sv_container .sv_body .sv_progress .sv_progress_bar { + height: 100%; + position: relative; + margin-top: 2em; } + .sv_main .sv_container .sv_body .sv_progress .sv_progress_bar > span { + position: absolute; + top: -1.5em; + display: inline-block; } + .sv_main .sv_container .sv_body .sv_p_root .sv_page_title { + font-size: 1em; + margin-top: 0.1em; + font-weight: normal; } + .sv_main .sv_container .sv_body .sv_p_root .sv_p_title { + font-weight: bold; + font-size: 1.15em; + margin: 1.5em 0 0 0; } + .sv_main .sv_container .sv_body .sv_p_root > .sv_row { + padding: 0; } + .sv_main .sv_container .sv_body .sv_p_root .sv_q_title { + font-weight: bold; + font-size: 1em; + margin: 0.5em 0; } + .sv_main .sv_container .sv_body .sv_p_root .sv_q_description { + margin-top: -0.6em; } + .sv_main .sv_container .sv_body .sv_p_root .sv_q { + padding: 0.5em 1em 1.5em 1em; + box-sizing: border-box; + overflow: auto; } + .sv_main .sv_container .sv_body .sv_p_root .sv_q .sv_panel_dynamic .sv_q_title { + font-weight: normal; } + .sv_main .sv_container .sv_body .sv_p_root .sv_q .sv_q_erbox:not([style*="display: none"]):not([style*="display:none"]) { + margin: 1em 0; + padding: 1em; } + .sv_main .sv_container .sv_body .sv_p_root .sv_q .sv_q_other input, + .sv_main .sv_container .sv_body .sv_p_root .sv_q .sv_q_text_root, + .sv_main .sv_container .sv_body .sv_p_root .sv_q .sv_q_dropdown_control, + .sv_main .sv_container .sv_body .sv_p_root .sv_q input[type="text"], + .sv_main .sv_container .sv_body .sv_p_root .sv_q select, + .sv_main .sv_container .sv_body .sv_p_root .sv_q textarea { + position: relative; + width: 100%; + box-sizing: border-box; + font-size: 1em; + line-height: 2em; + padding-left: 1em; } + .sv_main .sv_container .sv_body .sv_p_root .sv_q .sv_q_other input:focus, + .sv_main .sv_container .sv_body .sv_p_root .sv_q .sv_q_text_root:focus, + .sv_main .sv_container .sv_body .sv_p_root .sv_q .sv_q_dropdown_control:focus, + .sv_main .sv_container .sv_body .sv_p_root .sv_q input[type="text"]:focus, + .sv_main .sv_container .sv_body .sv_p_root .sv_q select:focus, + .sv_main .sv_container .sv_body .sv_p_root .sv_q textarea:focus { + outline: none; } + .sv_main .sv_container .sv_body .sv_p_root .sv_q .sv_q_other input, + .sv_main .sv_container .sv_body .sv_p_root .sv_q .sv_q_dropdown_control, + .sv_main .sv_container .sv_body .sv_p_root .sv_q input[type="text"], + .sv_main .sv_container .sv_body .sv_p_root .sv_q select { + height: calc(2em + 1px); } + .sv_main .sv_container .sv_body .sv_p_root .sv_q div.sv_q_text_root, + .sv_main .sv_container .sv_body .sv_p_root .sv_q div.sv_q_dropdown_control { + min-height: 2.43em; + min-width: 7em; } + .sv_main .sv_container .sv_body .sv_p_root .sv_q .sv_select_wrapper { + width: 100%; + position: relative; + display: inline-block; } + .sv_main .sv_container .sv_body .sv_p_root .sv_q .sv_select_wrapper select { + display: block; + background: transparent; + appearance: none; + -webkit-appearance: none; + -moz-appearance: none; + padding-right: 2.5em; } + .sv_main .sv_container .sv_body .sv_p_root .sv_q .sv_select_wrapper select::-ms-expand { + display: none; } + .sv_main .sv_container .sv_body .sv_p_root .sv_q .sv_select_wrapper:before { + padding: 1em; + position: absolute; + right: 1px; + right: 0; + top: 1px; + background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDIxLjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAzNCAzNCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMzQgMzQ7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojRkZGRkZGO30KPC9zdHlsZT4KPHBvbHlnb24gY2xhc3M9InN0MCIgcG9pbnRzPSIxMiwxNiAxNCwxNCAxNywxNyAyMCwxNCAyMiwxNiAxNywyMSAiLz4KPC9zdmc+Cg==); + content: ""; + background-repeat: no-repeat; + background-position: center; } + .sv_main .sv_container .sv_body .sv_p_root .sv_q input[type="color"] { + min-height: 2em; + padding: 0; } + .sv_main .sv_container .sv_body .sv_p_root .sv_q input[type="radio"], + .sv_main .sv_container .sv_body .sv_p_root .sv_q input[type="checkbox"] { + margin: 0; + margin-right: 0.55em; + width: 1.2em; + height: 1.2em; + vertical-align: middle; + font-size: 1em; + margin-top: -0.1em; } + .sv_main .sv_container .sv_body .sv_p_root .sv_q input[type="radio"]:focus, + .sv_main .sv_container .sv_body .sv_p_root .sv_q input[type="checkbox"]:focus { + outline: none; } + .sv_main .sv_container .sv_body .sv_p_root .sv_q .sv_q_radiogroup.sv_q_radiogroup_inline:not(:last-child), + .sv_main .sv_container .sv_body .sv_p_root .sv_q .sv_q_checkbox.sv_q_checkbox_inline:not(:last-child), + .sv_main .sv_container .sv_body .sv_p_root .sv_q .sv_q_imgsel.sv_q_imagepicker_inline:not(:last-child) { + margin-right: 1.5em; } + .sv_main .sv_container .sv_body .sv_p_root .sv_q .sv_q_imgsel label > div { + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + padding: 4px; + border: 1px solid lightgray; + border-radius: 4px; } + .sv_main .sv_container .sv_body .sv_p_root .sv_q .sv_q_imgsel label > div > img { + display: block; } + .sv_main .sv_container .sv_body .sv_p_root .sv_q .sv_q_radiogroup_clear { + margin-top: 0.5em; } + .sv_main .sv_container .sv_body .sv_p_root .sv_q .sv_q_checkbox_inline, + .sv_main .sv_container .sv_body .sv_p_root .sv_q .sv_q_radiogroup_inline, + .sv_main .sv_container .sv_body .sv_p_root .sv_q .sv_q_imagepicker_inline { + line-height: 2em; + display: inline-block; } + .sv_main .sv_container .sv_body .sv_p_root .sv_q .sv_q_footer { + padding: 1em 0; } + .sv_main .sv_container .sv_body .sv_p_root table { + width: 100%; + border-collapse: collapse; } + .sv_main .sv_container .sv_body .sv_p_root table.sv_q_matrix .sv_matrix_dynamic_button, .sv_main .sv_container .sv_body .sv_p_root table.sv_q_matrix_dropdown .sv_matrix_dynamic_button, .sv_main .sv_container .sv_body .sv_p_root table.sv_q_matrix_dynamic .sv_matrix_dynamic_button { + padding: 0.3em 2em; } + .sv_main .sv_container .sv_body .sv_p_root table.sv_q_matrix td { + min-width: 10em; } + .sv_main .sv_container .sv_body .sv_p_root table.sv_q_matrix td .sv_q_m_label { + position: static; } + .sv_main .sv_container .sv_body .sv_p_root table.sv_q_matrix_dropdown .sv_qcbc .sv_q_checkbox_control_label { + margin-right: 1.5em; } + .sv_main .sv_container .sv_body .sv_p_root table td, + .sv_main .sv_container .sv_body .sv_p_root table th { + text-align: left; + padding: 0 1em; } + .sv_main .sv_container .sv_body .sv_p_root table td { + padding: 0.5em; } + .sv_main .sv_container .sv_body .sv_p_root table th { + line-height: 1.3em; + padding: 0.5em; + vertical-align: bottom; + font-weight: bold; } + .sv_main .sv_container .sv_body .sv_p_root fieldset.sv_qcbc { + line-height: 2em; + padding-top: 0.1em; } + .sv_main .sv_container .sv_body .sv_p_root .sv_q_other { + margin-left: 1em; } + .sv_main .sv_container .sv_body .sv_p_root .sv_q_rating { + line-height: 2em; } + .sv_main .sv_container .sv_body .sv_p_root .sv_q_rating .sv_q_rating_item { + cursor: pointer; + word-spacing: -0.3em; + font-weight: normal; + display: inline; } + .sv_main .sv_container .sv_body .sv_p_root .sv_q_rating .sv_q_rating_item > * { + word-spacing: initial; } + .sv_main .sv_container .sv_body .sv_p_root .sv_q_rating .sv_q_rating_item .sv_q_rating_item_text { + display: inline-block; + min-width: 2em; + padding: 0 0.3em; + margin-left: -1px; + text-align: center; } + .sv_main .sv_container .sv_body .sv_p_root .sv_q_rating .sv_q_rating_item:not(:first-child) .sv_q_rating_item_text:not(:hover) { + border-left-color: transparent; } + .sv_main .sv_container .sv_body .sv_p_root .sv_q_rating .sv_q_rating_min_text { + margin-right: 0.5em; } + .sv_main .sv_container .sv_body .sv_p_root .sv_q_rating .sv_q_rating_max_text { + margin-left: 0.5em; } + .sv_main .sv_container .sv_body .sv_nav { + padding: 1em 0; + min-height: 2em; } + .sv_main .sv_container .sv_body .sv_nav .sv_start_btn, + .sv_main .sv_container .sv_body .sv_nav .sv_next_btn, + .sv_main .sv_container .sv_body .sv_nav .sv_complete_btn { + float: right; } + .sv_main .sv_container .sv_body .sv_nav .sv_prev_btn { + float: left; } diff --git a/AYA.SlnSynor/AYA.SlnSynor/Controllers/HomeController.cs b/AYA.SlnSynor/AYA.SlnSynor/Controllers/HomeController.cs index 1f3983773..36189f136 100644 --- a/AYA.SlnSynor/AYA.SlnSynor/Controllers/HomeController.cs +++ b/AYA.SlnSynor/AYA.SlnSynor/Controllers/HomeController.cs @@ -44,5 +44,8 @@ namespace AYA.SlnSinort.Controllers InitControllers(); return View(); } + + + } } \ No newline at end of file diff --git a/AYA.SlnSynor/AYA.SlnSynor/Controllers/NormativaReglamentacionTecnicaController.cs b/AYA.SlnSynor/AYA.SlnSynor/Controllers/NormativaReglamentacionTecnicaController.cs index 47ae601b0..dd2b67b2b 100644 --- a/AYA.SlnSynor/AYA.SlnSynor/Controllers/NormativaReglamentacionTecnicaController.cs +++ b/AYA.SlnSynor/AYA.SlnSynor/Controllers/NormativaReglamentacionTecnicaController.cs @@ -44,5 +44,11 @@ namespace AYA.SlnSinort.Controllers.NormativaReglamentacionTecnica return View(); } + public ActionResult CrearEncuesta() + { + InitControllers(); + return View(); + } + } } \ No newline at end of file diff --git a/AYA.SlnSynor/AYA.SlnSynor/Scripts/_references.js b/AYA.SlnSynor/AYA.SlnSynor/Scripts/_references.js index 0b2e114b3..c2627ba70 100644 Binary files a/AYA.SlnSynor/AYA.SlnSynor/Scripts/_references.js and b/AYA.SlnSynor/AYA.SlnSynor/Scripts/_references.js differ diff --git a/AYA.SlnSynor/AYA.SlnSynor/Scripts/jquery.richtext.js b/AYA.SlnSynor/AYA.SlnSynor/Scripts/jquery.richtext.js new file mode 100644 index 000000000..40305376b --- /dev/null +++ b/AYA.SlnSynor/AYA.SlnSynor/Scripts/jquery.richtext.js @@ -0,0 +1,1911 @@ +(function ( $ ) { + + $.fn.richText = function( options ) { + + // set default options + // and merge them with the parameter options + var settings = $.extend({ + + // text formatting + bold: true, + italic: true, + underline: true, + + // text alignment + leftAlign: true, + centerAlign: true, + rightAlign: true, + + // lists + ol: true, + ul: true, + + // title + heading: true, + + // fonts + fonts: true, + fontList: ["Arial", + "Arial Black", + "Comic Sans MS", + "Courier New", + "Geneva", + "Georgia", + "Helvetica", + "Impact", + "Lucida Console", + "Tahoma", + "Times New Roman", + "Verdana" + ], + fontColor: true, + fontSize: true, + + // uploads + imageUpload: true, + fileUpload: true, + + // media + videoEmbed: true, + + // link + urls: true, + + // tables + table: true, + + // code + removeStyles: true, + code: true, + + // colors + colors: [], + + // dropdowns + fileHTML: '', + imageHTML: '', + + // translations + translations: { + 'title': 'Title', + 'white': 'White', + 'black': 'Black', + 'brown': 'Brown', + 'beige': 'Beige', + 'darkBlue': 'Dark Blue', + 'blue': 'Blue', + 'lightBlue': 'Light Blue', + 'darkRed': 'Dark Red', + 'red': 'Red', + 'darkGreen': 'Dark Green', + 'green': 'Green', + 'purple': 'Purple', + 'darkTurquois': 'Dark Turquois', + 'turquois': 'Turquois', + 'darkOrange': 'Dark Orange', + 'orange': 'Orange', + 'yellow': 'Yellow', + 'imageURL': 'Image URL', + 'fileURL': 'File URL', + 'linkText': 'Link text', + 'url': 'URL', + 'size': 'Size', + 'responsive': 'Responsive', + 'text': 'Text', + 'openIn': 'Open in', + 'sameTab': 'Same tab', + 'newTab': 'New tab', + 'align': 'Align', + 'left': 'Left', + 'center': 'Center', + 'right': 'Right', + 'rows': 'Rows', + 'columns': 'Columns', + 'add': 'Add', + 'pleaseEnterURL': 'Please enter an URL', + 'videoURLnotSupported': 'Video URL not supported', + 'pleaseSelectImage': 'Please select an image', + 'pleaseSelectFile': 'Please select a file', + 'bold': 'Bold', + 'italic': 'Italic', + 'underline': 'Underline', + 'alignLeft': 'Align left', + 'alignCenter': 'Align centered', + 'alignRight': 'Align right', + 'addOrderedList': 'Add ordered list', + 'addUnorderedList': 'Add unordered list', + 'addHeading': 'Add Heading/title', + 'addFont': 'Add font', + 'addFontColor': 'Add font color', + 'addFontSize' : 'Add font size', + 'addImage': 'Add image', + 'addVideo': 'Add video', + 'addFile': 'Add file', + 'addURL': 'Add URL', + 'addTable': 'Add table', + 'removeStyles': 'Remove styles', + 'code': 'Show HTML code', + 'undo': 'Undo', + 'redo': 'Redo', + 'close': 'Close' + }, + + // privacy + youtubeCookies: false, + + // dev settings + useSingleQuotes: false, + height: 0, + heightPercentage: 0, + id: "", + class: "", + useParagraph: false + + }, options ); + + + /* prepare toolbar */ + var $inputElement = $(this); + $inputElement.addClass("richText-initial"); + var $editor, + $toolbarList = $('