Commit 698331bc authored by Cosimo Antonio Volpicelli's avatar Cosimo Antonio Volpicelli
Browse files

Modifiche Prima pagina

parent 6d2c6f13
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -180,3 +180,5 @@ EMAIL_HOST_PASSWORD = 'caV#290957#Vac'
EMAIL_PORT = 587
EMAIL_PORT = 587
EMAIL_USE_TLS =True
EMAIL_USE_TLS =True
EMAIL_USE_SSL = False
EMAIL_USE_SSL = False

REPOSITORY_ALLEGATI = '/srv/Acquisti/allegati/' 
 No newline at end of file
+51 −0
Original line number Original line Diff line number Diff line
@@ -130,7 +130,53 @@
              </div>
              </div>
            </div>
            </div>
            </div>
            </div>
<div class="x_content">
                    <div class="row">
                      <div class="animated flipInY col-lg-3 col-md-3 col-sm-6  " data-href="completate">
                        <div class="tile-stats">
                          <div class="icon"><i class="fa fa-check"></i>
                          </div>
                          <div class="count">179</div>

                          <h3>Completate</h3>
                          <p>Lorem ipsum psdea itgum rixt.</p>
                        </div>
                      </div>
                      <div class="animated flipInY col-lg-3 col-md-3 col-sm-6  " data-href="inviate">
                        <div class="tile-stats">
                          <div class="icon"><i class="fa fa-mail-forward"></i>
                          </div>
                          <div class="count">179</div>

                          <h3>Inviate</h3>
                          <p>Lorem ipsum psdea itgum rixt.</p>
                        </div>
                      </div>
                      <div class="animated flipInY col-lg-3 col-md-3 col-sm-6  " data-href="lavorazione">
                        <div class="tile-stats">
                          <div class="icon"><i class="fa fa-gears"></i>
                          </div>
                          <div class="count">179</div>

                          <h3>In lavorazione</h3>
                          <p>Lorem ipsum psdea itgum rixt.</p>
                        </div>
                      </div>
                      <div class="animated flipInY col-lg-3 col-md-3 col-sm-6  " data-href="create">
                        <div class="tile-stats">
                          <div class="icon"><i class="fa fa-comment-o"></i>
                          </div>
                          <div class="count">179</div>

                          <h3>Create</h3>
                          <p>Lorem ipsum psdea itgum rixt.</p>
                        </div>
                      </div>
                      </div>
                      </div>
                      </div>

        </div>

                       {% endblock right_col %}
                       {% endblock right_col %}




@@ -144,6 +190,11 @@
    <script src="{% static '/DataTables/dataTables.bootstrap5.min.js' %}"></script>
    <script src="{% static '/DataTables/dataTables.bootstrap5.min.js' %}"></script>
    <script src="{% static '/datepicker/js/bootstrap-datepicker.js' %}"></script>
    <script src="{% static '/datepicker/js/bootstrap-datepicker.js' %}"></script>
 
 
 <script>
$('.animated').on('click',function(ev){
  alert($(this).attr('data-href'))
})
 </script>


{% endblock javascripts %}
{% endblock javascripts %}
+116 −0
Original line number Original line Diff line number Diff line
.validate {
  margin-top: 10px; }

.invalid-form-error-message {
  margin-top: 10px;
  padding: 5px; }

.invalid-form-error-message.filled {
  border-left: 2px solid #E74C3C; }

p.parsley-success {
  color: #468847;
  background-color: #DFF0D8;
  border: 1px solid #D6E9C6; }

p.parsley-error {
  color: #B94A48;
  background-color: #F2DEDE;
  border: 1px solid #EED3D7; }

ul.parsley-errors-list {
  list-style: none;
  color: #E74C3C;
  padding-left: 0; }

input.parsley-error, textarea.parsley-error, select.parsley-error {
  background: #FAEDEC;
  border: 1px solid #E85445; }

.btn-group .parsley-errors-list {
  display: none; }

.bad input, .bad select, .bad textarea {
  border: 1px solid #CE5454;
  -webkit-box-shadow: 0 0 4px -2px #CE5454;
          box-shadow: 0 0 4px -2px #CE5454;
  position: relative;
  left: 0;
  -moz-animation: .7s 1 shake linear;
  -webkit-animation: 0.7s 1 shake linear; }

  .item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; }

.item input, .item textarea {
  -webkit-transition: 0.42s;
  transition: 0.42s; }

/* alerts (when validation fails) */
.item .alert {
  float: left;
  margin: 0 0 0 20px;
  padding: 3px 10px;
  color: #FFF;
  border-radius: 3px 4px 4px 3px;
  background-color: #CE5454;
  max-width: 170px;
  white-space: pre;
  position: relative;
  left: -15px;
  opacity: 0;
  z-index: 1;
  -webkit-transition: 0.15s ease-out;
  transition: 0.15s ease-out; }

.item .alert::after {
  content: '';
  display: block;
  height: 0;
  width: 0;
  border-color: transparent #CE5454 transparent transparent;
  border-style: solid;
  border-width: 11px 7px;
  position: absolute;
  left: -13px;
  top: 1px; }

.item.bad .alert {
  left: 0;
  opacity: 1; }

.inl-bl {
  display: inline-block; }

.well {
  min-height: 20px;
  padding: 19px;
  margin-bottom: 20px;
  background-color: #f5f5f5;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); }
.well .markup {
  background: #fff;
  color: #777;
  position: relative;
  padding: 45px 15px 15px;
  margin: 15px 0 0 0;
  background-color: #fff;
  border-radius: 0 0 4px 4px;
  -webkit-box-shadow: none;
          box-shadow: none; }

.well .markup::after {
  content: "Example";
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 12px;
  font-weight: bold;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 1px; }
+2472 −0

File added.

Preview size limit exceeded, changes collapsed.

+68 −4
Original line number Original line Diff line number Diff line
@@ -9,6 +9,7 @@
    <link href="{% static '/datepicker/css/datepicker.css' %}" rel="stylesheet">
    <link href="{% static '/datepicker/css/datepicker.css' %}" rel="stylesheet">
    
    
    <link href="{% static '/smartwizard/css/smart_wizard_all.min.css' %}" rel="stylesheet">
    <link href="{% static '/smartwizard/css/smart_wizard_all.min.css' %}" rel="stylesheet">
    <link href="{% static '/validator/parsley.css' %}" rel="stylesheet">
    
    
    <!--
    <!--
    <link href="https://unpkg.com/smartwizard@5/dist/css/smart_wizard_all.min.css" rel="stylesheet" type="text/css" />
    <link href="https://unpkg.com/smartwizard@5/dist/css/smart_wizard_all.min.css" rel="stylesheet" type="text/css" />
@@ -122,7 +123,7 @@
                                </span>                            </a>
                                </span>                            </a>
                        </li>
                        </li>
                        </ul>
                        </ul>
                        <form action="/utenti/save/richiesta" method="POST">
                        <form action="/utenti/save/richiesta" method="POST" data-parsley-validate>
                        {% csrf_token %}
                        {% csrf_token %}
                        <div class="tab-content">
                        <div class="tab-content">
                       
                       
@@ -135,7 +136,7 @@
                                                    <div class="form-group">
                                                    <div class="form-group">
                                                                    <button style="z-index:100" id="pollastro" type="button" data-toggle="popover" title="Info" data-html="true" data-content="Inserire parole chiave per agevolare la tracciabilità e la ricerca della richiesta di acquisto" data-original-title="Info"><span class="fa fa-1x fa-info-circle" aria-hidden="true"></span></button>
                                                                    <button style="z-index:100" id="pollastro" type="button" data-toggle="popover" title="Info" data-html="true" data-content="Inserire parole chiave per agevolare la tracciabilità e la ricerca della richiesta di acquisto" data-original-title="Info"><span class="fa fa-1x fa-info-circle" aria-hidden="true"></span></button>
                                                        <label>Specificare un titolo breve per questo acquisto in modo da poter essere facilmente ricercato</label>
                                                        <label>Specificare un titolo breve per questo acquisto in modo da poter essere facilmente ricercato</label>
                                                        <input id="titolobreve" name="titolobreve" type="text" class="form-control required="required"">
                                                        <input id="titolobreve" name="titolobreve" type="text" class="form-control" required>
                                                    </div>
                                                    </div>
                                                    <div class="form-group ">
                                                    <div class="form-group ">
                                                        <label>Pino Torinese, il 30-05-2020 <br> 
                                                        <label>Pino Torinese, il 30-05-2020 <br> 
@@ -492,7 +493,7 @@
    
    
    <script src="{% static '/smartwizard/js/jquery.smartWizard.min.js' %}"></script>
    <script src="{% static '/smartwizard/js/jquery.smartWizard.min.js' %}"></script>
    <script src="{% static '/validator/multifield.js' %}"></script>
    <script src="{% static '/validator/multifield.js' %}"></script>
    <script src="{% static '/validator/validator.js' %}"></script>
    <script src="{% static '/validator/parsley.js' %}"></script>
    <!--
    <!--
    <script src="https://unpkg.com/smartwizard@5/dist/js/jquery.smartWizard.min.js" type="text/javascript"></script>
    <script src="https://unpkg.com/smartwizard@5/dist/js/jquery.smartWizard.min.js" type="text/javascript"></script>
 -->
 -->
@@ -548,6 +549,7 @@
</div> 
</div> 
      </script>
      </script>
<script>
<script>
/*
var validator = new FormValidator();
var validator = new FormValidator();
   document.forms[0].addEventListener('blur', function(e){
   document.forms[0].addEventListener('blur', function(e){
    validator.checkField(e.target)
    validator.checkField(e.target)
@@ -555,6 +557,7 @@ var validator = new FormValidator();
document.forms[0].addEventListener('input', function(e){
document.forms[0].addEventListener('input', function(e){
    validator.checkField(e.target);
    validator.checkField(e.target);
}, true);
}, true);
*/
var app3 = new Vue({
var app3 = new Vue({
  el: '#informaticiPlus',
  el: '#informaticiPlus',
  data: {
  data: {
@@ -763,10 +766,68 @@ $('#smartwizard').smartWizard({
  errorSteps: [], // Highlight step with errors
  errorSteps: [], // Highlight step with errors
  hiddenSteps: [] // Hidden steps
  hiddenSteps: [] // Hidden steps
});
});
 /* PARSLEY */
    var validateFront = function () {
        if (true === $('form').parsley().isValid()) {
            $('.bs-callout-info').removeClass('hidden');
            $('.bs-callout-warning').addClass('hidden');
        } else {
            $('.bs-callout-info').addClass('hidden');
            $('.bs-callout-warning').removeClass('hidden');
        }
    };
function init_parsley() {

    if (typeof (parsley) === 'undefined') { return; }
    console.log('init_parsley');

    $/*.listen*/('parsley:field:validate', function () {
        validateFront();
    });
    $('#demo-form .btn').on('click', function () {
        $('#demo-form').parsley().validate();
        validateFront();
    });
    var validateFront = function () {
        if (true === $('#demo-form').parsley().isValid()) {
            $('.bs-callout-info').removeClass('hidden');
            $('.bs-callout-warning').addClass('hidden');
        } else {
            $('.bs-callout-info').addClass('hidden');
            $('.bs-callout-warning').removeClass('hidden');
        }
    };

    $/*.listen*/('parsley:field:validate', function () {
        validateFront();
    });
    $('#demo-form2 .btn').on('click', function () {
        $('#demo-form2').parsley().validate();
        validateFront();
    });
    var validateFront = function () {
        if (true === $('form').parsley().isValid()) {
            $('.bs-callout-info').removeClass('hidden');
            $('.bs-callout-warning').addClass('hidden');
        } else {
            $('.bs-callout-info').addClass('hidden');
            $('.bs-callout-warning').removeClass('hidden');
        }
    };

    try {
        hljs.initHighlightingOnLoad();
    } catch (err) { }

};
init_parsley();


// Initialize the leaveStep event
// Initialize the leaveStep event
$("#smartwizard").on("leaveStep", function(e, anchorObject, currentStepIndex, nextStepIndex, stepDirection) {
$("#smartwizard").on("leaveStep", function(e, anchorObject, currentStepIndex, nextStepIndex, stepDirection) {
   //console.log("get", $("#smartwizard").steps("getCurrentStep") );
   //console.log("get", $("#smartwizard").steps("getCurrentStep") );
    $('form').parsley().validate();
    validateFront();
    console.log("parsley:", $('form').parsley().isValid());
    if ($('form').valid()) {
    if ($('form').valid()) {
        return true;
        return true;
    } else {
    } else {
@@ -849,6 +910,9 @@ $("#smartwizard").on("showStep", function(e, anchorObject, stepIndex, stepDirect
   }
   }
   console.log(stepDirection);
   console.log(stepDirection);
});
});



    var obiettivifun=[]
    var obiettivifun=[]
    {% for one in ob_fun %}
    {% for one in ob_fun %}
        j={'id':{{one.id}},'of':'{{one.obiettivofunzione}}','descr': '{{one.descrizione}}',
        j={'id':{{one.id}},'of':'{{one.obiettivofunzione}}','descr': '{{one.descrizione}}',