Skip to content

Commit

Permalink
Vary responsible fields depending on document type
Browse files Browse the repository at this point in the history
  • Loading branch information
shff committed Mar 22, 2018
1 parent dbcfb9a commit 60908f7
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion UI/app/components/pages/enrollment.vue
Original file line number Diff line number Diff line change
Expand Up @@ -299,14 +299,26 @@
hint="Ex: 00.000.000/0000-00" />
<InputBox
v-model="data.responsible.name"
v-if="data.responsible.documenttype == 'CPF'"
:size="6"
label="Nome completo" />
<InputBox
v-model="data.responsible.name"
v-if="data.responsible.documenttype == 'CNPJ'"
:size="6"
label="Razão Social" />
</div>
<div class="flex gutters flex-wrap">
<InputBox
v-if="data.responsible.documenttype == 'CNPJ'"
v-model="data.responsible.contact"
:size="4"
label="Contato" />
label="Pessoa de Contato" />
<InputBox
v-if="data.responsible.documenttype == 'CPF'"
v-model="data.responsible.relationship"
:size="4"
label="Relacionamento com o aluno" />
<InputBox
v-model="data.responsible.address"
:size="8"
Expand Down

0 comments on commit 60908f7

Please sign in to comment.