<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Alam487</title>
    <description>The latest articles on DEV Community by Alam487 (@alam487).</description>
    <link>https://dev.to/alam487</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F571236%2F75f074fe-d3f4-4352-909b-4fa304e52983.png</url>
      <title>DEV Community: Alam487</title>
      <link>https://dev.to/alam487</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alam487"/>
    <language>en</language>
    <item>
      <title>How to fix local storage issue in vue_form_generator</title>
      <dc:creator>Alam487</dc:creator>
      <pubDate>Tue, 07 Dec 2021 07:27:16 +0000</pubDate>
      <link>https://dev.to/alam487/how-to-fix-local-storage-issue-in-vueformgenerator-5enn</link>
      <guid>https://dev.to/alam487/how-to-fix-local-storage-issue-in-vueformgenerator-5enn</guid>
      <description>&lt;p&gt;I am using local storage in vue form generator where I am storing the user entered value temporary in a browser. So after submitting the form local storage value will vanish completely.&lt;br&gt;
    But in my case I have some issues Like in our site we have two different user One is business user and other is personal user So the issue is If we are storing the local storage value in business login user and if we logout from the session and we will login with different user as personal user Then the same value is displaying in other logged in user. So how to prevent this in vfg.&lt;br&gt;
    Here is my code which I have implemented.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if (localStorage.getItem('model') !== null)
            this.model=JSON.parse(localStorage.getItem('model'));
  },
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;localStorage.setItem('model', JSON.stringify(this.model));
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Using vfg model I am saving the value in local storage. So please if anyone Have an Idea please help me&lt;/p&gt;

</description>
    </item>
    <item>
      <title>performance issue with vue.js v-if condition</title>
      <dc:creator>Alam487</dc:creator>
      <pubDate>Tue, 27 Apr 2021 16:22:07 +0000</pubDate>
      <link>https://dev.to/alam487/performance-issue-with-vue-js-v-if-condition-469</link>
      <guid>https://dev.to/alam487/performance-issue-with-vue-js-v-if-condition-469</guid>
      <description>&lt;p&gt;Here I am using vue form generator. Here my question is I have written v-if condition for many categories. In the same way I have many vue form generator component where I have written v-if condition. So I am facing performance issue here. So my question is if we are writing such condition like this. so this could be the reason for performance or anything else.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div v-if="(category == 'Real Estate | Single Family Homes')||(category == 'Real Estate | Town Homes')||(category == 'Real Estate | Condominiums')||(category == 'Real Estate | Multi Family')||(category == 'Real Estate | Mobile Homes')||(category == 'Real Estate | Farm/Ranch Land')||(category == 'Real Estate | Commercial Property')||(category == 'Real Estate | Foreclosures')||(category == 'Real Estate | Storage')||(category == 'Real Estate | Vacation Property')||(category == 'Real Estate | Open Houses')||(category == 'Real Estate | Other Properties')"&amp;gt;

&amp;lt;vue-form-g :schema="schema_Real_Estate" :model="model" :options="formOptions"&amp;gt;&amp;lt;/vue-form-g&amp;gt;

&amp;lt;span class="prev_next"&amp;gt;
&amp;lt;button class="prev_next_btn" @click.prevent="prev()"&amp;gt;Previous&amp;lt;/button&amp;gt;
&amp;lt;button style="background-color:lightgray;" class="prev_next_btn" @click.prevent="next(2)"&amp;gt;Next&amp;lt;/button&amp;gt;
&amp;lt;/span&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>How to prompt a autocomplete in vue.js</title>
      <dc:creator>Alam487</dc:creator>
      <pubDate>Tue, 06 Apr 2021 08:36:01 +0000</pubDate>
      <link>https://dev.to/alam487/how-to-prompt-a-autocomplete-in-vue-js-53gj</link>
      <guid>https://dev.to/alam487/how-to-prompt-a-autocomplete-in-vue-js-53gj</guid>
      <description>&lt;p&gt;Here I am trying to achieve a autocomplete in vue.js. I have implemented autocomplete in javascript and here I am facing a issue is while i am typing a letter in category field and autocomplete list is prompting but while I am selecting from the list it is accepting only letter what I have typed in category input field instead of the selected option from the list. I am facing this issue and trying to solve a lot but unable to reach the target. So if anyone H ave an idea on this please help me.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;***javascript autocomplete**
&amp;lt;script&amp;gt;
    $(function () {
        $("#id_post_type").autocomplete({
            source: '{% url 'autocomplete' %}',
        });
    });
&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div&amp;gt;
&amp;lt;input type="text" v-model="category" placeholder="Search your category" name="category" maxlength="200" id="id_post_type" autocomplete="on" required&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;script&amp;gt;
    Vue.use(VueFormWizard)
new Vue({
 el: '#q-vikreya',

    components: {
        "vue-form-g": VueFormGenerator.component
    },

    data() {
            return {
            step:1,
            category:'',
            model:'',
        formOptions: {
            validateAfterLoad: true,
            validateAfterChanged: true
        }
            };
    },
&amp;lt;!--/ By using this delimiters we were able to fix the vue.js compatibility with django. since the curly braces between django and--&amp;gt;
&amp;lt;!--    // vue.js conflicted, delimiters helped here to solve the conflicts--&amp;gt;
    delimiters: ["&amp;lt;%","%&amp;gt;"],
        ready: function() {
        console.log('ready');
    },

 methods: {
    prev(currentStep) {
      if(this.checkForm()) {
          if (currentStep === 4) {
             this.step = 3
          } else {
             this.step--;
          }
      }
    },
    next(currentStep) {
      if(this.checkForm()) {
        if (currentStep === 4) {
          this.step = 5
        } else {
          this.step++;
        }
      }
    },
    checkForm: function (e) {
      if (this.category &amp;amp;&amp;amp; this.title) {
        return true;
      }

      this.errors = [];

      if (!this.category) {
        this.errors.push('Name required.');
      }
      if (!this.title) {
        this.errors.push('Age required.');
      }

      e.preventDefault();
    },
      submitForm: function(){
            axios({
                method : "POST",
                url: "{% url 'PostAd' %}", //django path name
                headers: {'X-CSRFTOKEN': '{{ csrf_token }}', 'Content-Type': 'application/json'},
                data : {"category":this.category, "title":this.title,
                "address":this.address,
                "city": this.city,
                "state": this.state,
                "zip": this.zip,
                "price": this.price,
                "description": this.description,
                "radio_price": this.radio_price,
                "Job_title": this.model,
                },//data
              }).then(response =&amp;gt; {
              console.log("response");
              console.log(response.data);
                  this.success_msg = response.data['msg'];
                 window.location.replace('{% url "classifieds" %}')  // Replace home by the name of your home view

              }).catch(err =&amp;gt; {
                     this.err_msg = err.response.data['err'];
              console.log("response1");
              console.log(err.response.data);

              });

          },
  },
})

&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Multi step form with options prompts different forms</title>
      <dc:creator>Alam487</dc:creator>
      <pubDate>Wed, 24 Feb 2021 09:03:38 +0000</pubDate>
      <link>https://dev.to/alam487/multi-step-form-with-options-prompts-different-forms-p20</link>
      <guid>https://dev.to/alam487/multi-step-form-with-options-prompts-different-forms-p20</guid>
      <description>&lt;p&gt;Hi, &lt;br&gt;
We are trying to design multi step form in vue.js or in Quasar with the following requirement.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1. Consumer user logs in
    -&amp;gt; 1.1. Consumer user opens post Ad multi step form
-&amp;gt; 1.2. Consumer user is able to select a desired category in Post Ad form and clicks Next button
-&amp;gt; 1.3. Next screen of the multi step form prompts new screen with 2 radio buttons
-&amp;gt; 1.4. So radio button options are : Personal Ad &amp;amp; Business Ad
-&amp;gt; 1.5. When Business Ad radio button is selected we are able to prompt correct form which is business account upgrade form
-&amp;gt; 1.6. When Personal Ad radio button is selected we need to see a form that is related to the category that is chosen in (1.2) but this is not prompting
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I'm wondering how to achieve to prompt respective form for (1.6) above&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
  &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1"&amp;gt;
  &amp;lt;script type="text/javascript" src="https://unpkg.com/vue@2.0.4/dist/vue.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;!--  quasar farme work UMD in a head part--&amp;gt;
    &amp;lt;link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900|Material+Icons" rel="stylesheet" type="text/css"&amp;gt;
    &amp;lt;link href="https://cdn.jsdelivr.net/npm/quasar@1.15.4/dist/quasar.min.css" rel="stylesheet" type="text/css"&amp;gt;
  &amp;lt;/head&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;!--here I have give "Id = 'q-vk_app'" to mount this with a vue.js --&amp;gt;
&amp;lt;div id="vk_app"&amp;gt;
  &amp;lt;form&amp;gt;
&amp;lt;!--Here is a first step. So in this step we have category field where user enters a category and based on that category we are prompting the--&amp;gt;
&amp;lt;!--other templates--&amp;gt;
    &amp;lt;div v-if="step === 1"&amp;gt;

      &amp;lt;h1&amp;gt;Step One&amp;lt;/h1&amp;gt;
      &amp;lt;p&amp;gt;
        &amp;lt;legend for="name"&amp;gt;Your Name:&amp;lt;/legend&amp;gt;
        &amp;lt;input id="name" name="name" v-model="category"&amp;gt;
      &amp;lt;/p&amp;gt;

      &amp;lt;button @click.prevent="next()"&amp;gt;Next&amp;lt;/button&amp;gt;

    &amp;lt;/div&amp;gt;
    &amp;lt;div v-if="step === 2"&amp;gt;
&amp;lt;!--if user logged in as a business user then second step by default we are displaying this radio button template--&amp;gt;
      {% if user_type == 'business' %}
      &amp;lt;template&amp;gt;
        &amp;lt;input type="radio"&amp;gt;&amp;lt;/br&amp;gt;
        &amp;lt;button @click.prevent="prev()"&amp;gt;Previous&amp;lt;/button&amp;gt;
        &amp;lt;button @click.prevent="next()"&amp;gt;Next&amp;lt;/button&amp;gt;
      &amp;lt;/template&amp;gt;
      {% else %}
&amp;lt;!--if user enters a category 'laptop' then on next step we are prompting this template --&amp;gt;
      &amp;lt;template v-if="category == 'laptop'"&amp;gt;
        &amp;lt;h1&amp;gt;template laptop&amp;lt;/h1&amp;gt;
        &amp;lt;button @click.prevent="prev()"&amp;gt;Previous&amp;lt;/button&amp;gt;
        9
        &amp;lt;button @click.prevent="next()"&amp;gt;Next&amp;lt;/button&amp;gt;
      &amp;lt;/template&amp;gt;
&amp;lt;!--if user enters a category 'IT' then on next step we are prompting this template based on category--&amp;gt;
      &amp;lt;template v-if="category == 'IT'"&amp;gt;
        &amp;lt;h1&amp;gt;template IT&amp;lt;/h1&amp;gt;
        &amp;lt;button @click.prevent="prev()"&amp;gt;Previous&amp;lt;/button&amp;gt;
        &amp;lt;button @click.prevent="next()"&amp;gt;Next&amp;lt;/button&amp;gt;
      &amp;lt;/template&amp;gt;

&amp;lt;!--if user enters a category 'computer' then on next step we are prompting this template based on category--&amp;gt;
      &amp;lt;template v-if="category == 'computer'"&amp;gt;
        &amp;lt;h1&amp;gt;template computer&amp;lt;/h1&amp;gt;
        &amp;lt;button @click.prevent="prev()"&amp;gt;Previous&amp;lt;/button&amp;gt;
        &amp;lt;button @click.prevent="next()"&amp;gt;Next&amp;lt;/button&amp;gt;
      &amp;lt;/template&amp;gt;
      {% endif %}
    &amp;lt;/div&amp;gt;
&amp;lt;!--here is a step 3 div after prompting the category specified fields we prompt this div--&amp;gt;
    &amp;lt;div v-if="step === 3"&amp;gt;
      &amp;lt;h1&amp;gt;Step Three&amp;lt;/h1&amp;gt;

      &amp;lt;button @click.prevent="prev()"&amp;gt;Previous&amp;lt;/button&amp;gt;
      &amp;lt;button @click.prevent="submit()"&amp;gt;Save&amp;lt;/button&amp;gt;

    &amp;lt;/div&amp;gt;
  &amp;lt;/form&amp;gt;

  &amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;Debug: {{registration}}
&amp;lt;/div&amp;gt;

&amp;lt;!--Adding a quasar script at the end of the body --&amp;gt;
  &amp;lt;script src="https://cdn.jsdelivr.net/npm/vue@^2.0.0/dist/vue.min.js"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script src="https://cdn.jsdelivr.net/npm/quasar@1.15.4/dist/quasar.umd.min.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;

&amp;lt;script&amp;gt;
  const app = new Vue({
  el:'#q-vk_app',
  data() {
  return {
  step:1,
  category:null,
  street:null,
  city:null,
  state:null,
  numtickets:0,
  shirtsize:'XL',

  }
  },
  methods:{
  prev() {
  this.step--;
  },
  next() {
  this.step++;
  },
  submit() {
  alert('Submit to blah and show blah and etc.');
  }
  }
  });

&amp;lt;/script&amp;gt;

&amp;lt;script&amp;gt;
  // optional
  window.quasarConfig = {
    brand: { // this will NOT work on IE 11
      primary: '#e46262',
      // ... or all other brand colors
    },
    notify: {...}, // default set of options for Notify Quasar plugin
    loading: {...}, // default set of options for Loading Quasar plugin
    loadingBar: { ... }, // settings for LoadingBar Quasar plugin
    // ..and many more
  }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Thanks&lt;br&gt;
 Alam&lt;/p&gt;

</description>
    </item>
    <item>
      <title>showing a category specified field after clicking radio button
</title>
      <dc:creator>Alam487</dc:creator>
      <pubDate>Mon, 22 Feb 2021 16:07:03 +0000</pubDate>
      <link>https://dev.to/alam487/showing-a-category-specified-field-after-clicking-radio-button-4g73</link>
      <guid>https://dev.to/alam487/showing-a-category-specified-field-after-clicking-radio-button-4g73</guid>
      <description>&lt;p&gt;here I have written a code for multistep form with radio button. So here in a first step I have a category field where user enters a category and based on that category we are prompting the next field. So here while user enters a category after that radio button form will display. if radio button is checked also we need to prompt a form whatever category entered in first step. Simply if user enters category then next step is radio button form if we checked the radio button then next form should display based on the entered category in first step&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; &amp;lt;div id="app"&amp;gt;
  &amp;lt;form&amp;gt;
  &amp;lt;div v-if="step === 1"&amp;gt;

    &amp;lt;h1&amp;gt;Step One&amp;lt;/h1&amp;gt;
    &amp;lt;p&amp;gt;
    &amp;lt;legend for="name"&amp;gt;Your Name:&amp;lt;/legend&amp;gt;
    &amp;lt;input id="name" name="name" v-model="category"&amp;gt;
    &amp;lt;/p&amp;gt;

    &amp;lt;button @click.prevent="next()"&amp;gt;Next&amp;lt;/button&amp;gt;

  &amp;lt;/div&amp;gt;



&amp;lt;div v-if="step === 2"&amp;gt;
    {% if user_type == 'business' %}
        &amp;lt;template&amp;gt;
            &amp;lt;input type="radio" @change="handleClickInput"&amp;gt;&amp;lt;/br&amp;gt;
            &amp;lt;button @click.prevent="prev()"&amp;gt;Previous&amp;lt;/button&amp;gt;
            &amp;lt;button @click.prevent="next()"&amp;gt;Next&amp;lt;/button&amp;gt;
        &amp;lt;/template&amp;gt;
        {% else %}
          &amp;lt;template v-if="category == 'laptop'"&amp;gt;
           &amp;lt;h1&amp;gt;template laptop&amp;lt;/h1&amp;gt;
            &amp;lt;button @click.prevent="prev()"&amp;gt;Previous&amp;lt;/button&amp;gt;9
            &amp;lt;button @click.prevent="next()"&amp;gt;Next&amp;lt;/button&amp;gt;
          &amp;lt;/template&amp;gt;

          &amp;lt;template v-else-if="category == 'IT'"&amp;gt;
           &amp;lt;h1&amp;gt;template IT&amp;lt;/h1&amp;gt;
            &amp;lt;button @click.prevent="prev()"&amp;gt;Previous&amp;lt;/button&amp;gt;
            &amp;lt;button @click.prevent="next()"&amp;gt;Next&amp;lt;/button&amp;gt;
          &amp;lt;/template&amp;gt;

          &amp;lt;template v-else-if="category == 'computer'"&amp;gt;
           &amp;lt;h1&amp;gt;template computer&amp;lt;/h1&amp;gt;
            &amp;lt;button @click.prevent="prev()"&amp;gt;Previous&amp;lt;/button&amp;gt;
            &amp;lt;button @click.prevent="next()"&amp;gt;Next&amp;lt;/button&amp;gt;
          &amp;lt;/template&amp;gt;
    {% endif %}
&amp;lt;/div&amp;gt;

  &amp;lt;div v-if="step === 3"&amp;gt;
    &amp;lt;h1&amp;gt;Step Three&amp;lt;/h1&amp;gt;

    &amp;lt;button @click.prevent="prev()"&amp;gt;Previous&amp;lt;/button&amp;gt;
    &amp;lt;button @click.prevent="submit()"&amp;gt;Save&amp;lt;/button&amp;gt;

  &amp;lt;/div&amp;gt;
  &amp;lt;/form&amp;gt;

  &amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;Debug: {{registration}}
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;vue.js&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const app = new Vue({
  el:'#app',
  data() {
    return {
      step:1,
        category:null,
        street:null,
        city:null,
        state:null,
        numtickets:0,
        shirtsize:'XL'
    }
  },
  methods:{
    prev() {
      this.step--;
    },
    next() {
      this.step++;
    },
    submit() {
      alert('Submit to blah and show blah and etc.');      
    }
  }
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Here I am trying to built a multistep form wizard in vue.js using Django and python</title>
      <dc:creator>Alam487</dc:creator>
      <pubDate>Thu, 11 Feb 2021 03:58:32 +0000</pubDate>
      <link>https://dev.to/alam487/here-i-am-trying-to-built-a-multistep-form-wizard-in-vue-js-using-django-and-python-43i8</link>
      <guid>https://dev.to/alam487/here-i-am-trying-to-built-a-multistep-form-wizard-in-vue-js-using-django-and-python-43i8</guid>
      <description>&lt;p&gt;I am trying to built a multistep form wizard in vue.js using Django where I have two flows one is personal user and other one business user. SO in personal user I have to prompt a form based on category selection. Like when we enter a category in html input field based on that category I have to show next form. Suppose if I enter a "IT" in category field then based on IT i have prompt next form related with IT fields.&lt;br&gt;
     So here first flow I have completed like displaying the form based on category selection. And the main problem is with business user here while we enter a category "IT" in business flow so at that time by default we are having next form with two radio buttons one is personal user radio button and other is business user so if we click on business user radio button then user are able to update his account from personal to business using registration form. &lt;br&gt;
    But while we click on personal radio button then I need to follow the same process of entering category and showing the next form based on this category enter by user but i was unable to achieve this. So here i need help if anyone have an idea on this&lt;br&gt;
     below is my code what I am trying to achieve&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div id="app"&amp;gt;
    &amp;lt;form&amp;gt;
        {% csrf_token %}
        &amp;lt;fieldset class="postad_fieldset" v-if="step == 1"&amp;gt;
            &amp;lt;a href="/home" class="close" data-dismiss="modal" style="margin-top: -3px;margin-right: 5px;" type="button"&amp;gt;×&amp;lt;/a&amp;gt;
            &amp;lt;div style="width: 100%;position: relative;left: 12px;height: 440px;"&amp;gt;
                &amp;lt;p class="progress_bar1"&amp;gt;&amp;lt;/p&amp;gt;
                &amp;lt;p class="progress_percent1"&amp;gt;&amp;lt;/p&amp;gt;
                &amp;lt;h1 class="post_adttl"&amp;gt;Post Ad&amp;lt;/h1&amp;gt;
                &amp;lt;p&amp;gt;&amp;lt;input class="vue_input" style="width: 93%;" type="text" v-model="category"
                          placeholder="Search your category"
                          name="category" maxlength="200" id="id_post_type" required&amp;gt;&amp;lt;/p&amp;gt;

                &amp;lt;p&amp;gt;
                    &amp;lt;input style="width: 93%;"class="vue_input" placeholder="Title" type="text" v-model="title" name="title" maxlength="60"
                           id="id_post_title"&amp;gt;
                &amp;lt;/p&amp;gt;

                &amp;lt;p class="select_p"&amp;gt;
                    &amp;lt;input class="vue_input" type="text" placeholder="Address" v-model="address" name="address"
                           maxlength="200" id="id_post_address"&amp;gt;
                    &amp;lt;input class="vue_input" type="text" placeholder="City" v-model="city" name="city" maxlength="100"
                           id="id_post_city"&amp;gt;
                &amp;lt;/p&amp;gt;

                &amp;lt;p class="select_p"&amp;gt;
                    &amp;lt;input class="vue_input" type="text" placeholder="State" v-model="state" name="state"
                           maxlength="100" id="id_post_state"&amp;gt;
                    &amp;lt;input class="vue_input" type="text" placeholder="Zip" v-model="zip" name="zip" maxlength="50"
                           id="id_post_zip"&amp;gt;
                &amp;lt;/p&amp;gt;

                &amp;lt;p&amp;gt;
                    &amp;lt;input class="vue_input" style="width: 93%;" type="number" placeholder="Price" v-model="price"
                           name="price" step="any" id="id_post_price"&amp;gt;
                &amp;lt;/p&amp;gt;

                &amp;lt;p&amp;gt;
                    &amp;lt;textarea style="height: 100px;padding-left: 25px;" class="vue_input" name="description"
                              v-model="description" placeholder="Ad description.." rows="5" maxlength="600"
                              id="id_post_description"&amp;gt;&amp;lt;/textarea&amp;gt;
                &amp;lt;/p&amp;gt;
                &amp;lt;button class="step1_next" @click.prevent="next()" class="btn btn-primary"&amp;gt;Next&amp;lt;/button&amp;gt;
            &amp;lt;/div&amp;gt;
        &amp;lt;/fieldset&amp;gt;


        &amp;lt;fieldset class="postad_fieldset progress_bar2" v-if="step == 2"&amp;gt;
            &amp;lt;div style="width: 100%;position: relative;left: 12px;"&amp;gt;
                &amp;lt;!--if we enter category 'Real Estate | Single Family Homes' in first screen at category field. If that entered category and this template
                is matched then based on that category we are prompting this template --&amp;gt;
                {% if user_type == 'business' %}
                &amp;lt;template v-if="category == 'Real Estate | Single Family Homes'"&amp;gt;
                    &amp;lt;p class="progress_bar1"&amp;gt;&amp;lt;/p&amp;gt;
                    &amp;lt;p class="progress_percent1"&amp;gt;&amp;lt;/p&amp;gt;

                    &amp;lt;h1 class="post_adttl"&amp;gt;Post Ad&amp;lt;/h1&amp;gt;
                    &amp;lt;p class="select_p"&amp;gt;
                        &amp;lt;input class="vue_input" type="number" placeholder="Bedrooms" name="bedrooms_p"
                               v-model="bedrooms" id="id_post_bedrooms"&amp;gt;
                        &amp;lt;input class="vue_input" type="number" placeholder="Bathrooms" name="bathrooms_p"
                               v-model="bathrooms" id="id_post_bathrooms"&amp;gt;
                    &amp;lt;/p&amp;gt;

                    &amp;lt;p class="select_p"&amp;gt;
                        &amp;lt;input class="vue_input" type="number" placeholder="SQFT" name="Square_ft_p" v-model="Square_ft"
                               maxlength="100" id="id_post_Square_ft"&amp;gt;
                        &amp;lt;input class="vue_input" type="number" placeholder="Lot size" name="lot_size_p"
                               v-model="lot_size" maxlength="50" id="id_post_lot_size"&amp;gt;
                    &amp;lt;/p&amp;gt;

                    &amp;lt;p class="select_p"&amp;gt;
                        &amp;lt;input class="vue_input" type="number" placeholder="Total rooms" v-model="total_rooms"
                               name="total_rooms_p" id="id_post_total_rooms"&amp;gt;
                        &amp;lt;input class="vue_input" type="number" placeholder="Stories" name="stories_p" v-model="stories"
                               maxlength="200" id="id_post_stories"&amp;gt;
                    &amp;lt;/p&amp;gt;

                    &amp;lt;p class="select_p"&amp;gt;
                        &amp;lt;input class="vue_input" type="number" placeholder="Year built" v-model="year_built"
                               name="year_built_p" id="id_post_year_built"&amp;gt;
                        &amp;lt;input class="vue_input" type="number" placeholder="HOA" name="h_o_a_p" v-model="h_o_a"
                               maxlength="200" id="id_post_h_o_a"&amp;gt;
                    &amp;lt;/p&amp;gt;

                    &amp;lt;p class="select_p"&amp;gt;
                        &amp;lt;input class="vue_input" type="text" placeholder="Garages" name="garages_p" v-model="garages"
                               maxlength="200" id="id_post_garages"&amp;gt;
                        &amp;lt;input class="vue_input" type="text" placeholder="Basement" name="basement_p" v-model="basement"
                               maxlength="200" id="id_post_basement"&amp;gt;
                    &amp;lt;/p&amp;gt;

                    &amp;lt;p class="select_p"&amp;gt;
                        &amp;lt;input class="vue_input" type="text" placeholder="Roof" name="roof_p" v-model="roof"
                               maxlength="200" id="id_post_roof"&amp;gt;
                        &amp;lt;input class="vue_input" type="text" placeholder="Exterior" name="exterior_p" v-model="exterior"
                               maxlength="200" id="id_post_Exterior"&amp;gt;
                    &amp;lt;/p&amp;gt;

                    &amp;lt;p class="select_p"&amp;gt;
                        &amp;lt;input class="vue_input" type="text" placeholder="Cooling" name="cooling_p" v-model="cooling"
                               maxlength="200" id="id_post_cooling"&amp;gt;
                        &amp;lt;input class="vue_input" type="text" placeholder="Heating" name="heating_p" v-model="heating"
                               maxlength="200" id="id_post_heating"&amp;gt;
                    &amp;lt;/p&amp;gt;

                    &amp;lt;!-- Select drop down list for schools based on state and city we prompt near by schools in drop down list dynamically. Multiple selection.--&amp;gt;

                    &amp;lt;p&amp;gt;
                        &amp;lt;select class="vue_input" style="width: 93%;" placeholder="Schools" name="schools_p"
                                v-model="schools" id="id_post_schools"&amp;gt;&amp;lt;/select&amp;gt;
                    &amp;lt;/p&amp;gt;

                    &amp;lt;p class="select_p"&amp;gt;
                        &amp;lt;input class="vue_input" type="file" name="image_p" v-model="image" accept="image/*"
                               id="id_post_image"&amp;gt;
                        &amp;lt;input class="vue_input" type="file" name="image2_p" v-model="image2" accept="image/*"
                               id="id_post_image2"&amp;gt;
                    &amp;lt;/p&amp;gt;

                    &amp;lt;p class="select_p"&amp;gt;
                        &amp;lt;input class="vue_input" type="file" name="image3_p" v-model="image3" accept="image/*"
                               id="id_post_image3"&amp;gt;
                        &amp;lt;input class="vue_input" type="file" name="image4_p" v-model="image4" accept="image/*"
                               id="id_post_image4"&amp;gt;
                    &amp;lt;/p&amp;gt;
                    &amp;lt;p class="prev_next"&amp;gt;
                        &amp;lt;button style="background-color: lightgray;border-color:lightgray;" @click.prevent="prev()"
                                class="btn btn-info"&amp;gt;Previous
                        &amp;lt;/button&amp;gt;
                        &amp;lt;button style="background-color: #01ABAA;border-color:#01ABBAA;" @click.prevent="next()"
                                class="btn btn-primary"&amp;gt;Next
                        &amp;lt;/button&amp;gt;
                    &amp;lt;/p&amp;gt;
                &amp;lt;/template&amp;gt;

                &amp;lt;!--                      --&amp;gt;
                &amp;lt;template v-else-if="category == 'laptop'"&amp;gt;
                    &amp;lt;p class="progress_bar1"&amp;gt;&amp;lt;/p&amp;gt;
                    &amp;lt;h1 class="post_adttl"&amp;gt;Post Ad&amp;lt;/h1&amp;gt;
                    &amp;lt;h2&amp;gt; laptop template&amp;lt;/h2&amp;gt;

                    &amp;lt;p class="prev_next"&amp;gt;
                        &amp;lt;button style="background-color: lightgray;border-color:lightgray;" @click.prevent="prev()"
                                class="btn btn-info"&amp;gt;Previous
                        &amp;lt;/button&amp;gt;
                        &amp;lt;button style="background-color: #01ABAA;border-color:#01ABBAA;" @click.prevent="next()"
                                class="btn btn-primary"&amp;gt;Next
                        &amp;lt;/button&amp;gt;
                    &amp;lt;/p&amp;gt;
                &amp;lt;/template&amp;gt;

                &amp;lt;template v-else-if="category == 'computer'"&amp;gt;
                    &amp;lt;p class="progress_bar1"&amp;gt;&amp;lt;/p&amp;gt;
                    &amp;lt;h1 class="post_adttl"&amp;gt;Post Ad&amp;lt;/h1&amp;gt;
                    &amp;lt;h2&amp;gt; computer template&amp;lt;/h2&amp;gt;

                    &amp;lt;p class="prev_next"&amp;gt;
                        &amp;lt;button style="background-color: lightgray;" @click.prevent="prev()" class="btn btn-info"&amp;gt;
                            Previous
                        &amp;lt;/button&amp;gt;
                        &amp;lt;button style="background-color: #01ABAA;" @click.prevent="next()" class="btn btn-primary"&amp;gt;
                            Next
                        &amp;lt;/button&amp;gt;
                    &amp;lt;/p&amp;gt;
                &amp;lt;/template&amp;gt;

                &amp;lt;template v-else-if="category == 'IT'"&amp;gt;
                    &amp;lt;div style="height: 238px;"&amp;gt;
                        &amp;lt;p style="position:relative;left: 107px;" class="progress_bar1"&amp;gt;&amp;lt;/p&amp;gt;
                        &amp;lt;p style="width: 190px;" class="progress_percent1"&amp;gt;&amp;lt;/p&amp;gt;
                        &amp;lt;h1 class="post_adttl"&amp;gt;Post Ad&amp;lt;/h1&amp;gt;
                        &amp;lt;p class="select_p"&amp;gt;
                            &amp;lt;input class="vue_input" type="text" placeholder="Title" name="title_it" v-model="title_it"
                                   maxlength="200" id="id_post_title_it"&amp;gt;
                            &amp;lt;input class="vue_input" type="text" placeholder="Experience" name="experience_it"
                                   v-model="experience" maxlength="200" id="id_post_experience_it"&amp;gt;
                        &amp;lt;/p&amp;gt;

                        &amp;lt;p class="select_p"&amp;gt;
                            &amp;lt;input class="vue_input" type="text" placeholder="Location" name="location_it"
                                   v-model="location" maxlength="200" id="id_post_location_it"&amp;gt;
                            &amp;lt;input class="vue_input" type="text" placeholder="Salary" name="salary_it" v-model="salary"
                                   maxlength="200" id="id_post_salary_it"&amp;gt;
                        &amp;lt;/p&amp;gt;

                        &amp;lt;p class="select_p"&amp;gt;
                            &amp;lt;input class="vue_input" type="text" placeholder="Industry" name="industry_it"
                                   v-model="industry" maxlength="200" id="id_post_industry_it"&amp;gt;
                            &amp;lt;input class="vue_input" type="text" name="time_it" v-model="time" maxlength="200"
                                   id="id_post_time_it"&amp;gt;
                        &amp;lt;/p&amp;gt;


                        &amp;lt;p class="prev_next"&amp;gt;
                            &amp;lt;button style="background-color: lightgray;" @click.prevent="prev()" class="btn btn-info"&amp;gt;
                                Previous
                            &amp;lt;/button&amp;gt;
                            &amp;lt;button style="background-color: #01ABAA;" @click.prevent="next()" class="btn btn-primary"&amp;gt;
                                Next
                            &amp;lt;/button&amp;gt;
                        &amp;lt;/p&amp;gt;
                    &amp;lt;/div&amp;gt;
                &amp;lt;/template&amp;gt;

                &amp;lt;template v-else-if="category == 'Boat'"&amp;gt;
                    &amp;lt;h1 class="post_adttl"&amp;gt;Post Ad&amp;lt;/h1&amp;gt;
                    &amp;lt;p class="select_p"&amp;gt;
                        &amp;lt;input class="vue_input" type="number" placeholder="Year" name="Yearofmake"
                               id="id_post_year_boat"&amp;gt;
                        &amp;lt;input class="vue_input" type="text" placeholder="Make" name="Make" maxlength="200"
                               id="id_post_make_boat"&amp;gt;
                    &amp;lt;/p&amp;gt;
                    &amp;lt;p class="select_p"&amp;gt;
                        &amp;lt;input class="vue_input" type="text" placeholder="Model" name="Model" maxlength="200"
                               id="id_post_model_boat"&amp;gt;
                        &amp;lt;input class="vue_input" type="text" placeholder="Type" name="type_boat" maxlength="200"
                               id="id_post_type_boat"&amp;gt;
                    &amp;lt;/p&amp;gt;
                    &amp;lt;p class="select_p"&amp;gt;
                        &amp;lt;input class="vue_input" type="text" placeholder="Class" name="class_boat" maxlength="200"
                               id="id_post_class_boat"&amp;gt;
                        &amp;lt;input class="vue_input" type="text" placeholder="Length" name="length_boat" maxlength="200"
                               id="id_post_length_boat"&amp;gt;
                    &amp;lt;/p&amp;gt;
                    &amp;lt;p class="select_p"&amp;gt;
                        &amp;lt;input class="vue_input" type="text" placeholder="Beam" name="beam_boat" maxlength="200"
                               id="id_post_beam_boat"&amp;gt;
                        &amp;lt;input class="vue_input" type="text" placeholder="Draft" name="draft_boat" maxlength="200"
                               id="id_post_draft_boat"&amp;gt;
                    &amp;lt;/p&amp;gt;
                    &amp;lt;p class="select_p"&amp;gt;
                        &amp;lt;input class="vue_input" type="text" placeholder="Weight" name="weight_boat" maxlength="200"
                               id="id_post_weight_boat"&amp;gt;
                        &amp;lt;input class="vue_input" type="text" placeholder="Engine" name="engine_boat" maxlength="200"
                               id="id_post_engine_boat"&amp;gt;
                    &amp;lt;/p&amp;gt;
                    &amp;lt;p class="select_p"&amp;gt;
                        &amp;lt;input class="vue_input" type="text" placeholder="HP" name="hp_boat" maxlength="200"
                               id="id_post_hp_boat"&amp;gt;
                        &amp;lt;input class="vue_input" type="text" placeholder="Drive" name="drive_boat" maxlength="200"
                               id="id_post_drive_boat"&amp;gt;
                    &amp;lt;/p&amp;gt;
                    &amp;lt;p class="select_p"&amp;gt;
                        &amp;lt;input class="vue_input" type="text" placeholder="Fuel Type" name="fuel_type_boat"
                               maxlength="200"
                               id="id_post_fuel_type_boat"&amp;gt;
                        &amp;lt;input class="vue_input" type="text" placeholder="Status" name="status_boat" maxlength="200"
                               id="id_post_status_boat"&amp;gt;
                    &amp;lt;/p&amp;gt;
                    &amp;lt;p class="select_p"&amp;gt;
                        &amp;lt;input class="vue_input" type="text" placeholder="Condition" name="condition_boat"
                               maxlength="200" id="id_post_condition_boat"&amp;gt;
                    &amp;lt;/p&amp;gt;

                    &amp;lt;p class="prev_next"&amp;gt;
                        &amp;lt;button style="background-color: lightgray;" @click.prevent="prev()" class="btn btn-info"&amp;gt;
                            Previous
                        &amp;lt;/button&amp;gt;
                        &amp;lt;button style="background-color: #01ABAA;" @click.prevent="next()" class="btn btn-primary"&amp;gt;
                            Next
                        &amp;lt;/button&amp;gt;
                    &amp;lt;/p&amp;gt;
                &amp;lt;/template&amp;gt;
                {% else %}
                &amp;lt;template v-if=""&amp;gt;

                    &amp;lt;h1 class="preview_adttl"&amp;gt;Consumer&amp;lt;% this.category %&amp;gt;&amp;lt;/h1&amp;gt;
                    &amp;lt;input class="consumer_radio" type="radio" id="consumer" name="flag" value="Personal Ad"
                           v-on:input="selectCategory"&amp;gt;
                    &amp;lt;label style="position: relative;left: 1px;" class="personal_postad"&amp;gt;Personal Ad:&amp;lt;/label&amp;gt;
                    &amp;lt;p class="postad_p"&amp;gt;Personal ads can be posted one ad per month, which will appear &amp;lt;br&amp;gt;
                        with "sale by owner
                        tag"&amp;lt;/p&amp;gt;&amp;lt;br&amp;gt;


                    &amp;lt;input style="position: relative;width: 4%;top: -37px;" class="business_radio" type="radio"
                           id="business" name="flag" value="business" v-model="picked"&amp;gt;
                    &amp;lt;label style="position: relative;top: -49px;" class="Business_postad"&amp;gt;Business Ad:&amp;lt;/label&amp;gt;
                    &amp;lt;p style="position: relative;left: 0px;top: -47px;" class="postad_p"&amp;gt;Do you want to
                        upgrade to business account to post more &amp;lt;br&amp;gt;ads per month&amp;lt;/p&amp;gt;

                    &amp;lt;p class="prev_next"&amp;gt;
                        &amp;lt;button style="background-color: lightgray;border-color:lightgray;"
                                @click.prevent="prev()" class="btn btn-info"&amp;gt;Previous
                        &amp;lt;/button&amp;gt;
                        &amp;lt;button style="background-color: #01ABAA;border-color:#01ABBAA;" @click.prevent="next()"
                                class="btn btn-primary"&amp;gt;Next
                        &amp;lt;/button&amp;gt;
                    &amp;lt;/p&amp;gt;
                &amp;lt;/template&amp;gt;

                {% endif %}
            &amp;lt;/div&amp;gt;
        &amp;lt;/fieldset&amp;gt;


        &amp;lt;fieldset class="postad_fieldset" v-if="step == 3"&amp;gt;

            &amp;lt;div style="width: 100%;position: relative;left: 12px;height: 275px;"&amp;gt;
                {% if user_type == 'business' %}
                &amp;lt;template v-if=""&amp;gt;
                    &amp;lt;p style="position:relative;left: 216px;" class="progress_bar1"&amp;gt;&amp;lt;/p&amp;gt;
                    &amp;lt;p style="width: 300px;" class="progress_percent1"&amp;gt;&amp;lt;/p&amp;gt;
                    &amp;lt;h1 class="post_adttl"&amp;gt;Package&amp;lt;/h1&amp;gt;
                    &amp;lt;p&amp;gt;
                        &amp;lt;input style="width: 4%;" type="radio" name="price_Ads_package" class="price_1"
                               value="$4.99 - 12 Ads - Month"&amp;gt;&amp;lt;span
                            class="radio_price1"&amp;gt; $2.99 - 6 Ads - Month&amp;lt;/span&amp;gt;
                    &amp;lt;/p&amp;gt;

                    &amp;lt;p&amp;gt;
                        &amp;lt;input style="width: 4%;" class="price2" type="radio" name="price_Ads_package" class="price_1"
                               value="$4.99 - 12 Ads - Month"&amp;gt;&amp;lt;span
                            class="radio_price2" style="position: relative;
    top: -13px;"&amp;gt; $4.99 - 12 Ads - Month&amp;lt;/span&amp;gt;
                    &amp;lt;/p&amp;gt;

                    &amp;lt;p style="margin-top: -30px;"&amp;gt;
                        &amp;lt;input style="width: 4%;" type="radio" name="price_Ads_package" class="price_1"
                               value="$8.99 - 24 Ads - Month"&amp;gt;&amp;lt;span
                            class="radio_price3"&amp;gt; $8.99 - 24 Ads - Month&amp;lt;/span&amp;gt;
                    &amp;lt;/p&amp;gt;

                    &amp;lt;p style="margin-top: -20px;"&amp;gt;
                        &amp;lt;input style="width: 4%;" type="radio" name="price_Ads_package" class="price_1"
                               value="Need More"&amp;gt;&amp;lt;span
                            class="radio_price4"&amp;gt; Need More&amp;lt;/span&amp;gt;&amp;lt;/p&amp;gt;
                    &amp;lt;/p&amp;gt;

                    &amp;lt;p class="prev_next"&amp;gt;
                        &amp;lt;button style="background-color: lightgray;" @click.prevent="prev()" class="btn btn-info"&amp;gt;
                            Previous
                        &amp;lt;/button&amp;gt;
                        &amp;lt;button style="background-color: #01ABAA;" @click.prevent="next()" class="btn btn-primary"&amp;gt;
                            Next
                        &amp;lt;/button&amp;gt;
                    &amp;lt;/p&amp;gt;
                &amp;lt;/template&amp;gt;
                {% endif %}
                &amp;lt;template v-if="picked == 'Personal Ad'"&amp;gt;

                    &amp;lt;h1 class="post_adttl"&amp;gt;Post Ad&amp;lt;/h1&amp;gt;
                    &amp;lt;p class="select_p"&amp;gt;
                        &amp;lt;input class="vue_input" type="number" placeholder="Bedrooms" name="bedrooms_p"
                               v-model="bedrooms" id="id_post_bedrooms"&amp;gt;
                        &amp;lt;input class="vue_input" type="number" placeholder="Bathrooms" name="bathrooms_p"
                               v-model="bathrooms" id="id_post_bathrooms"&amp;gt;
                    &amp;lt;/p&amp;gt;

                    &amp;lt;p class="select_p"&amp;gt;
                        &amp;lt;input class="vue_input" type="number" placeholder="SQFT" name="Square_ft_p" v-model="Square_ft"
                               maxlength="100" id="id_post_Square_ft"&amp;gt;
                        &amp;lt;input class="vue_input" type="number" placeholder="Lot size" name="lot_size_p"
                               v-model="lot_size" maxlength="50" id="id_post_lot_size"&amp;gt;
                    &amp;lt;/p&amp;gt;

                    &amp;lt;p class="select_p"&amp;gt;
                        &amp;lt;input class="vue_input" type="number" placeholder="Total rooms" v-model="total_rooms"
                               name="total_rooms_p" id="id_post_total_rooms"&amp;gt;
                        &amp;lt;input class="vue_input" type="number" placeholder="Stories" name="stories_p" v-model="stories"
                               maxlength="200" id="id_post_stories"&amp;gt;
                    &amp;lt;/p&amp;gt;

                    &amp;lt;p class="select_p"&amp;gt;
                        &amp;lt;input class="vue_input" type="number" placeholder="Year built" v-model="year_built"
                               name="year_built_p" id="id_post_year_built"&amp;gt;
                        &amp;lt;input class="vue_input" type="number" placeholder="HOA" name="h_o_a_p" v-model="h_o_a"
                               maxlength="200" id="id_post_h_o_a"&amp;gt;
                    &amp;lt;/p&amp;gt;

                    &amp;lt;p class="select_p"&amp;gt;
                        &amp;lt;input class="vue_input" type="text" placeholder="Garages" name="garages_p" v-model="garages"
                               maxlength="200" id="id_post_garages"&amp;gt;
                        &amp;lt;input class="vue_input" type="text" placeholder="Basement" name="basement_p" v-model="basement"
                               maxlength="200" id="id_post_basement"&amp;gt;
                    &amp;lt;/p&amp;gt;

                    &amp;lt;p class="select_p"&amp;gt;
                        &amp;lt;input class="vue_input" type="text" placeholder="Roof" name="roof_p" v-model="roof"
                               maxlength="200" id="id_post_roof"&amp;gt;
                        &amp;lt;input class="vue_input" type="text" placeholder="Exterior" name="exterior_p" v-model="exterior"
                               maxlength="200" id="id_post_Exterior"&amp;gt;
                    &amp;lt;/p&amp;gt;

                    &amp;lt;p class="select_p"&amp;gt;
                        &amp;lt;input class="vue_input" type="text" placeholder="Cooling" name="cooling_p" v-model="cooling"
                               maxlength="200" id="id_post_cooling"&amp;gt;
                        &amp;lt;input class="vue_input" type="text" placeholder="Heating" name="heating_p" v-model="heating"
                               maxlength="200" id="id_post_heating"&amp;gt;
                    &amp;lt;/p&amp;gt;

                    &amp;lt;!-- Select drop down list for schools based on state and city we prompt near by schools in drop down list dynamically. Multiple selection.--&amp;gt;

                    &amp;lt;p&amp;gt;
                        &amp;lt;select class="vue_input" style="width: 93%;" placeholder="Schools" name="schools_p"
                                v-model="schools" id="id_post_schools"&amp;gt;&amp;lt;/select&amp;gt;
                    &amp;lt;/p&amp;gt;

                    &amp;lt;p class="select_p"&amp;gt;
                        &amp;lt;input class="vue_input" type="file" name="image_p" v-model="image" accept="image/*"
                               id="id_post_image"&amp;gt;
                        &amp;lt;input class="vue_input" type="file" name="image2_p" v-model="image2" accept="image/*"
                               id="id_post_image2"&amp;gt;
                    &amp;lt;/p&amp;gt;

                    &amp;lt;p class="select_p"&amp;gt;
                        &amp;lt;input class="vue_input" type="file" name="image3_p" v-model="image3" accept="image/*"
                               id="id_post_image3"&amp;gt;
                        &amp;lt;input class="vue_input" type="file" name="image4_p" v-model="image4" accept="image/*"
                               id="id_post_image4"&amp;gt;
                    &amp;lt;/p&amp;gt;

                    &amp;lt;p class="prev_next"&amp;gt;
                        &amp;lt;button style="background-color: lightgray;border-color:lightgray;" @click.prevent="prev()"
                                class="btn btn-info"&amp;gt;Previous
                        &amp;lt;/button&amp;gt;
                        &amp;lt;button style="background-color: #01ABAA;border-color:#01ABBAA;" @click.prevent="next()"
                                class="btn btn-primary"&amp;gt;Next
                        &amp;lt;/button&amp;gt;
                    &amp;lt;/p&amp;gt;
                &amp;lt;/template&amp;gt;
                &amp;lt;template v-if="picked == 'business'"&amp;gt;
                &amp;lt;div class=" modal-body login-form" style="padding: 17px;width: 101%;background: rgb(237, 237, 237);position: absolute;left: -13px;"&amp;gt;
                &amp;lt;form style="position: relative;
    left: 6px;" id="business_signup" action="/business_signup" method="post"&amp;gt;
                    {% csrf_token %}
                    &amp;lt;h1 style="font-size:25px;margin-top:3px;margin-bottom:10px;"&amp;gt;Sign Up&amp;lt;/h1&amp;gt;
                    &amp;lt;p style="font-size:12px;float:left;color:grey;"&amp;gt;Please fill in this form to create an account!&amp;lt;/p&amp;gt;
                    &amp;lt;div class="form-group new-signup"&amp;gt;
                        &amp;lt;input id="email_business" name="email" placeholder="Business Email Address"
                               style="border:1px solid #01ABAA;"
                               type="email"&amp;gt;
                        &amp;lt;span class="input-icon"&amp;gt;&amp;lt;i class="fa fa-envelope fa1"&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/span&amp;gt;
                    &amp;lt;/div&amp;gt;
                    &amp;lt;div class="form-group"&amp;gt;
                        &amp;lt;input type="password" id='password_consumer' class="InputPassword password_r"
                               name="password_consumer" placeholder="Password" onkeyup="validate_password()"&amp;gt;&amp;lt;br&amp;gt;
                        &amp;lt;p id="password_result12_invalid" class="error_verify"
                           style="font-size: 8px;position: relative;top: 9px;"&amp;gt;&amp;lt;/p&amp;gt;
                        &amp;lt;span class="input-icon"&amp;gt;&amp;lt;i class="fa fa-lock fa1"&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/span&amp;gt;
                    &amp;lt;/div&amp;gt;
                    &amp;lt;div class="form-group"&amp;gt;
                        &amp;lt;input type="password" id='repassword_consumer' class="password_r" name="repassword"
                               placeholder="Confirm Password" onkeyup="validate_password()"&amp;gt;&amp;lt;br&amp;gt;
                        &amp;lt;p id="password_confirmation12_invalid" class="error_verify"
                           style="font-size: 8px;position: relative;top: 9px;"&amp;gt;&amp;lt;/p&amp;gt;
                        &amp;lt;span class="input-icon"&amp;gt;&amp;lt;i class="fa fa-lock fa1"&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;i
                                class="fa fa-check icon fa1"&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/span&amp;gt;
                    &amp;lt;/div&amp;gt;
                    &amp;lt;div class="form-group"&amp;gt;
                        &amp;lt;input id="Business_Name" name="Business_Name" placeholder="Business Name" type="text"
                               maxlength="30"&amp;gt;
                        &amp;lt;span class="input-icon "&amp;gt;&amp;lt;i class="fa fa-landmark icon fa1"&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/span&amp;gt;

                    &amp;lt;/div&amp;gt;
                    &amp;lt;div class="form-group"&amp;gt;
                        &amp;lt;input id="phone" name="phone" placeholder="Phone Number"&amp;gt;
                        &amp;lt;span class="input-icon "&amp;gt;&amp;lt;i class="fa fa-phone icon fa1"&amp;gt;&amp;lt;/i&amp;gt;
                &amp;lt;/span&amp;gt;
                    &amp;lt;/div&amp;gt;
                    &amp;lt;div class="form-group flex-row"&amp;gt;
                        &amp;lt;input style="width:50%" id="firstname" name="firstname" placeholder="First Name" type="text"
                               maxlength="30"&amp;gt;
                        &amp;lt;input style="width:50%" id="lastname" name="lastname" placeholder="Last Name" type="text"
                               maxlength="30"&amp;gt;
                    &amp;lt;/div&amp;gt;
                    &amp;lt;div class="form-group flex-row"&amp;gt;
                        &amp;lt;input style="width:50%" class="InputZip" name="Zip" placeholder="Zip Code" type="text"&amp;gt;
                        &amp;lt;input style="width:50%" class="Inputstate" name="state" placeholder="State" type="text"&amp;gt;
                    &amp;lt;/div&amp;gt;
                    &amp;lt;div class="select_business form-group"&amp;gt;
                        &amp;lt;select class="i_do" id="referred_by" name="referred_by" type="select"&amp;gt;
                            &amp;lt;option disabled selected value=""&amp;gt;How did you hear about
                                us
                            &amp;lt;/option&amp;gt;
                            &amp;lt;option class="o_drop" value="Email"&amp;gt;Email
                            &amp;lt;/option&amp;gt;

                            &amp;lt;option class="o_drop" value="website"&amp;gt;Website&amp;lt;/option&amp;gt;
                            &amp;lt;option value="Friend"&amp;gt;Friend&amp;lt;/option&amp;gt;
                            &amp;lt;option value="social medial"&amp;gt;Social medial&amp;lt;/option&amp;gt;
                        &amp;lt;/select&amp;gt;
                    &amp;lt;/div&amp;gt;


                    &amp;lt;div class="form-group" style=""&amp;gt;
                        &amp;lt;label class="container12" id="mailing" name="mailing"&amp;gt;
                            &amp;lt;input class="input" style="width: 17px;height: 17px;margin-left: -29px;
                        margin-top: -40px;display: inline-block;vertical-align: bottom;background-color: white;"
                                   type="checkbox"&amp;gt;
                            &amp;lt;p1 style="margin-left: 11px;"&amp;gt;
                                I’m in for emails with exciting discounts and personalized recommendations
                            &amp;lt;/p1&amp;gt;
                        &amp;lt;/label&amp;gt;
                    &amp;lt;/div&amp;gt;
                    &amp;lt;button class="login-btn" id="submit_consumer"&amp;gt;
                        Sign Up
                    &amp;lt;/button&amp;gt;
                    &amp;lt;p style="font-size:10px;margin-top: 4px;"&amp;gt;By signing up,you agree to our &amp;lt;a href="#"
                                                                                                 style="color:#DB0038;"&amp;gt;Terms
                        of use&amp;lt;/a&amp;gt; and &amp;lt;a href="#" style="color:#DB0038;"&amp;gt;Privacy policy.&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;
                    &amp;lt;p&amp;gt;Already have an account?&amp;lt;a class="" data-dismiss="modal" data-target="#myModal"
                                                  data-toggle="modal"
                                                  href="#" style="color:#DB0038;"&amp;gt;&amp;amp;nbsp;Log In&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;
                &amp;lt;/form&amp;gt;
            &amp;lt;/div&amp;gt;

                &amp;lt;/template&amp;gt;
            &amp;lt;/div&amp;gt;
        &amp;lt;/fieldset&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;vue.js&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;//Using vue.js script we have written data properties and this data properties are connected with form input fields with v-model
Vue.use(VueFormWizard)
   var app = new Vue({
     el: '#app',
     data: {
            step:1,
           category:'',
           title:'',
           address:'',
           city:'',
           state:'',
           zip:'',
           price:'',
           description:'',

           bedrooms:'',
           bathrooms:'',
           Square_ft:'',
           lot_size:'',
           total_rooms:'',
           stories:'',
           year_built:'',
           h_o_a:'',
           garages:'',
           basement:'',
           roof:'',
           exterior:'',
           cooling:'',
           heating:'',
           price_Ads_package:'',
       },

       // By using this delimiters we were able to fix the vue.js compatibility with django. since the curly braces between django and
    // vue.js conflicted, delimiters helped here to solve the conflicts
       delimiters: ["&amp;lt;%","%&amp;gt;"],
        ready: function() {
        console.log('ready');
    },

//This method is used for preview button while we click on preview we will navigate to previous screen--&amp;gt;
   methods:{
       prev() {
           this.step--;
       },

//By using next method user will able to navigate at next screen
       next() {
           this.step++;
       },
       selectCategory() {
           this.category == category;
        },
        submitForm: function(){
            axios({
                method : "POST",
                url: "{% url 'PostAd' %}", //django path name
                headers: {'X-CSRFTOKEN': '{{ csrf_token }}', 'Content-Type': 'application/json'},
                data : {"step1_category":this.category, "step1_title":this.title,
                "step1_address":this.address,
                "step1_city": this.city,
                "step1_state": this.state,
                "step1_Zip": this.zip,
                "step1_price": this.price,
                "step1_description": this.description,
                "step2_bedrooms_p": this.bedrooms,
                "step2_bathrooms_p": this.bathrooms,
                "step2_Square_ft_p": this.Square_ft,
                "step2_lot_size_p": this.lot_size,
                "step2_total_rooms_p": this.total_rooms,
                "step2_stories_p": this.stories,
                "step2_year_built_p": this.year_built,
                "step2_h_o_a_p": this.h_o_a,
                "step2_garages_p": this.garage,
                "step2_basement_p": this.basement,
                "step2_roof_p": this.roof,
                "step2_exterior_p": this.exterior,
                "step2_cooling_p": this.cooling,
                "step2_heating_p": this.heating,
                "price_Ads_package": this.price_Ads_package},//data
              }).then(response =&amp;gt; {
              console.log("response");
              console.log(response.data);
                  this.success_msg = response.data['msg'];
                 window.location.replace('{% url "classifieds" %}')  // Replace home by the name of your home view

              }).catch(err =&amp;gt; {
                     this.err_msg = err.response.data['err'];
              console.log("response1");
              console.log(err.response.data);

              });

          },


   }
    });

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Here i want to display a component based on category selection</title>
      <dc:creator>Alam487</dc:creator>
      <pubDate>Mon, 01 Feb 2021 12:48:08 +0000</pubDate>
      <link>https://dev.to/alam487/here-i-want-to-display-a-component-based-on-category-selection-h1e</link>
      <guid>https://dev.to/alam487/here-i-want-to-display-a-component-based-on-category-selection-h1e</guid>
      <description>&lt;p&gt;here i want to display the component based on category selection. If we enter a single family home in below category field then i want to display the 3rd component similar if we are entering other category then different component should display&lt;/p&gt;

&lt;p&gt;&lt;br&gt;
    
    placeholder="Search your category"&lt;br&gt;
    name="category" @change="onChange($event)"&lt;br&gt;
    v-model="step1_category" maxlength="200" id="id_post_type" :rules="inputRules"&amp;gt;&lt;br&gt;
    &lt;/p&gt;
&lt;p&gt;this is 3rd component&lt;/p&gt;
&lt;br&gt;
    Previous&lt;br&gt;
    Next&lt;br&gt;



&lt;p&gt;this is 4th component&lt;/p&gt;
&lt;br&gt;
    Previous&lt;br&gt;
    Next&lt;br&gt;



&lt;p&gt;this is 5th component&lt;/p&gt;
&lt;br&gt;
    Previous&lt;br&gt;
    Next&lt;br&gt;


&lt;p&gt;&lt;em&gt;vue.js&lt;/em&gt;&lt;br&gt;
Vue.component('step1', {&lt;br&gt;
template: '#step1',&lt;br&gt;
props: [&lt;br&gt;
'currentStep',&lt;br&gt;
'step1'&lt;br&gt;
]&lt;br&gt;
});&lt;/p&gt;

&lt;p&gt;Vue.component('step2', {&lt;br&gt;
template: '#step2',&lt;br&gt;
props: [&lt;br&gt;
'currentStep',&lt;br&gt;
'step2'&lt;br&gt;
]&lt;br&gt;
});&lt;/p&gt;

&lt;p&gt;Vue.component('step3', {&lt;br&gt;
template: '#step3',&lt;br&gt;
props: [&lt;br&gt;
'currentStep',&lt;br&gt;
'step3'&lt;br&gt;
]&lt;br&gt;
});&lt;/p&gt;

&lt;p&gt;var app = new Vue({&lt;br&gt;
el: '#app',&lt;br&gt;
data: {&lt;br&gt;
currentStep: 1,&lt;br&gt;
step1: {&lt;br&gt;
step1_category: '',&lt;br&gt;
},&lt;br&gt;
step2: {&lt;/p&gt;

&lt;p&gt;},&lt;br&gt;
step3: {&lt;br&gt;
}&lt;br&gt;
},&lt;br&gt;
// By using this delimiters we were able to fix the vue.js compatibility with django. since the curly braces between django and&lt;br&gt;
// vue.js conflicted, delimiters helped here to solve the conflicts&lt;br&gt;
delimiters: ["&amp;lt;%","%&amp;gt;"],&lt;br&gt;
ready: function() {&lt;br&gt;
console.log('ready');&lt;br&gt;
},&lt;br&gt;
// Here we have written vue.js methods for increment and decrement of next and previous steps&lt;br&gt;
methods: {&lt;br&gt;
goToStep: function(step) {&lt;br&gt;
this.currentStep ++;&lt;br&gt;
},&lt;br&gt;
stepsback: function(step) {&lt;br&gt;
this.currentStep --;&lt;br&gt;
},&lt;/p&gt;

&lt;p&gt;//here if i will enter a "Real Estate | Single Family Homes" then i want to display 3rd component that means if a select the above category then if i will click on next then third component should display&lt;br&gt;
onChange(event) {&lt;br&gt;
var category = event.target.value&lt;br&gt;
if (category == "Real Estate | Single Family Homes"){&lt;br&gt;
this.step3&lt;br&gt;
console.log(a)&lt;/p&gt;

&lt;p&gt;}&lt;br&gt;
},&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
