Changeset 16775


Ignore:
Timestamp:
Oct 4, 2017, 9:44:04 AM (18 months ago)
Author:
adriano.campos
Message:

Change property contract type options

Location:
internals/2017/FrontEndPlataformaSocial/Social_Plataform/client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • internals/2017/FrontEndPlataformaSocial/Social_Plataform/client/scripts/Forms/User/Buy.js

    r16770 r16775  
    77Buy = new Mongo.Collection("Buy");
    88Buy.attachSchema(new SimpleSchema({
     9  contractTypeOffer: {
     10    type: String,
     11    label: "Contract Type",
     12    optional: true,
     13    allowedValues: ['Buy','Sell','Rent','Swap'],
     14    autoform: {
     15      firstOption: "Choose the contract type",
     16      options: {
     17        Sell: "Sell",
     18        Rent: "Rent",
     19        Swap: "Swap"
     20      }
     21    }
     22  },
     23  contractTypeNeed: {
     24    type: String,
     25    label: "Contract Type",
     26    optional: true,
     27    allowedValues: ['Buy','Sell','Rent','Swap'],
     28    autoform: {
     29      firstOption: "Choose the contract type",
     30      options: {
     31        Buy: "Buy",
     32        Rent: "Rent",
     33        Swap: "Swap"
     34      }
     35    }
     36  },
    937  contractType: {
    1038    type: String,
     
    1543      firstOption: "Choose the contract type",
    1644      options: {
     45        Sell: "Sell",
    1746        Buy: "Buy",
    18         Sell: "Sell",
    1947        Rent: "Rent",
    2048        Swap: "Swap"
     
    2250    }
    2351  },
    24 
    2552  propertyUse: {
    2653    type: String,
  • internals/2017/FrontEndPlataformaSocial/Social_Plataform/client/templates/Forms/User/Buy.html

    r16768 r16775  
    2525            <hr>
    2626            <div class="row">
    27               {{> afQuickField name='contractType' template="bootstrap3-horizontal" label-class="col-sm-4" input-col-class="col-sm-8"}}
     27              {{> afQuickField name='contractTypeOffer' template="bootstrap3-horizontal" label-class="col-sm-4" input-col-class="col-sm-8"}}
    2828            </div>
    2929            <div class="row">
     
    7070            <hr>
    7171            <div class="row">
    72               {{> afQuickField name='contractType' template="bootstrap3-horizontal" label-class="col-sm-4" input-col-class="col-sm-8"}}
     72              {{> afQuickField name='contractTypeNeed' template="bootstrap3-horizontal" label-class="col-sm-4" input-col-class="col-sm-8"}}
    7373            </div>
    7474            <div class="row">
Note: See TracChangeset for help on using the changeset viewer.