Changeset 16746


Ignore:
Timestamp:
Sep 7, 2017, 3:20:19 PM (2 years ago)
Author:
afernandes
Message:
 
Location:
internals/2017/FrontEndPlataformaSocial/Social_Plataform/client/scripts
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • internals/2017/FrontEndPlataformaSocial/Social_Plataform/client/scripts/Forms/Company/AssociationsOfTheCommercialRealEstateIndustry.js

    r16733 r16746  
    77AssociationsOfTheCommercialRealEstateIndustry = new Mongo.Collection("AssociationsOfTheCommercialRealEstateIndustry");
    88AssociationsOfTheCommercialRealEstateIndustry.attachSchema(new SimpleSchema({
     9 type: {
     10    type: String,
     11    label: "Type",
     12    optional: true,
     13    allowedValues: ['Economy', 'Hospitality', 'Braga', 'Bragança', 'CasteloBranco',
     14    'Coimbra', 'Evora', 'Faro','Guarda','Leiria','Lisboa','Portalegre','Porto',
     15    'Santarem','Setubal', 'VianaCastelo'],
     16    autoform: {
     17      firstOption: "Choose the type",
     18      options: {
     19        Economy: "Promotion of Trade and Industry",
     20        Hospitality: "Other"
     21      }
     22    }
     23  },
    924  local: {
    1025    type: String,
    11     optional: true,
    1226    label: 'Location',
     27    optional:true,
    1328    allowedValues: ['Aveiro', 'Beja', 'Braga', 'Bragança', 'CasteloBranco',
    1429    'Coimbra', 'Evora', 'Faro','Guarda','Leiria','Lisboa','Portalegre','Porto',
     
    6681}, { tracker: Tracker }));
    6782
     83AutoForm.addHooks('AssociationsOfTheCommercialRealEstateIndustry', {
     84  onSubmit: function() {
     85      Router.go('companyOffers');
     86      return false;     
     87    }
     88});
  • internals/2017/FrontEndPlataformaSocial/Social_Plataform/client/scripts/forms.css

    r16735 r16746  
    99        padding-top: 5px;
    1010}
     11
     12.formUser{
     13        background-color: #fff;
     14    border-radius: 0px;
     15    border: 0px;
     16    border-top: 2px solid rgb(235, 74, 61);;
     17}
  • internals/2017/FrontEndPlataformaSocial/Social_Plataform/client/scripts/loading.js

    r16730 r16746  
    2020
    2121
     22Template.preferences.rendered = function(){
     23$(".eye").on("click" , function(){
     24    var $this = $(this);
     25    if( !$this.is(".show") ){
     26      $this.addClass("show")
     27           .removeClass("fa-eye-slash")
     28           .addClass("fa-eye").next()
     29           .attr("type" , "text");
     30    }else{
     31      $this.removeClass("show")
     32           .addClass("fa-eye-slash")
     33           .removeClass("fa-eye")
     34           .next().attr("type" , "password");
     35    }
     36  });
     37};
Note: See TracChangeset for help on using the changeset viewer.