Skip to content

Commit

Permalink
Merge branch 'vipin-shrivastava-master' into 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanjeev Papnoi committed Dec 24, 2021
2 parents b7f33dc + 223bcfc commit def0b78
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Resources/views/savedReplyForm.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@
,{
pattern: '^(?!.*[!@#$%^&*()<_+])',
msg: "{{ 'Name must have characters only' }}"
},
{
maxLength:100,
msg: "{{ 'This field contain maximum 100 characters.'|trans }}"
}
],
}
Expand Down
2 changes: 1 addition & 1 deletion Resources/views/ticket.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@

<ul class="uv-search-list type" data-action="type">
{% for type in ticketTypeCollection %}
<li data-index="{{ type.id }}"><a href="#">{{ type.description }}</a></li>
<li data-index="{{ type.id }}"><a href="#">{{ type.code }}</a></li>
{% endfor %}
</ul>
</div>
Expand Down
17 changes: 15 additions & 2 deletions Resources/views/ticketTypeAdd.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,27 @@
$(function () {
var TypeModel = Backbone.Model.extend({
validation: {
'code': {
'code': [{
required: true,
msg: "{{ 'This field is mandatory'|trans }}"
}
,{
pattern: '^(?!.*[!@#$%^&*()<_+])',
msg: "{{ 'Name must have characters only' }}"
},
'description': {
,{
maxLength:200,
msg: "{{ 'This field contain maximum 100 characters.'|trans }}"
}],
'description': [{
required: true,
msg: "{{ 'This field is mandatory'|trans }}"
}
,{
maxLength:200,
msg: "{{ 'This field contain maximum 200 characters.'|trans }}"
}
],
}
});
Expand Down

0 comments on commit def0b78

Please sign in to comment.