diff --git a/frontend/views/accounts/_vacancy_form.php b/frontend/views/accounts/_vacancy_form.php index 82a9651..53af506 100644 --- a/frontend/views/accounts/_vacancy_form.php +++ b/frontend/views/accounts/_vacancy_form.php @@ -90,7 +90,7 @@
field($vacancy, 'salary_currency', [ - 'template' => "{input}за час\n{hint}\n{error}", + 'template' => "{input}\n{hint}\n{error}", ]) ->label(false) ->dropDownList($currencies) @@ -100,6 +100,9 @@
+
+ +
+
+ +
+
field($vacancy, 'employmentInput') @@ -209,5 +218,41 @@ $('.input-blocks.admin-currency-second select').change(function(){ $(this).blur() }) + + specializationTags() + function specializationTags(){ + addSpecializationTags() + removeSpecializationTags() + newAddSpecializationTags() + + function addSpecializationTags(){ + var specTags = $('.admin-page .third-ul-menu input:checked') + for (var spI=0;spI'+newSpecTagsTxt+'') + } + } + + function removeSpecializationTags(){ + $('body').on('click', '.admin-page .admin-specialization-selected ul li', function(){ + var removeSpecTagsId = $(this).attr('data-spec-id') + $('.admin-page .third-ul-menu #'+removeSpecTagsId).attr('checked', false) + $(this).remove() + }) + } + + function newAddSpecializationTags(){ + $('.admin-page .third-ul-menu input').change(function(){ + var thisSpecTagsId = $(this).attr('id') + var thisSpecTagsTxt = $(this).parents('a').text() + if($(this).prop("checked")){ + $('.admin-page .admin-specialization-selected ul').append('
  • '+thisSpecTagsTxt+'
  • ') + } else { + $('.admin-page .admin-specialization-selected ul li[data-spec-id="'+thisSpecTagsId+'"]').remove() + } + }) + } + } }) \ No newline at end of file diff --git a/frontend/web/css/style.css b/frontend/web/css/style.css index 0fe0185..32c0ba1 100755 --- a/frontend/web/css/style.css +++ b/frontend/web/css/style.css @@ -6342,4 +6342,27 @@ input[disabled], select[disabled] { } .active-menu-admin.admin-menu-ico-4 a:before { background: url("/images/menu-ico/ico-4-active.png") 100% 50% no-repeat ; +} +.admin-specialization-selected {overflow: hidden;} +.admin-specialization-selected ul {float: left; width: 740px; margin-left: -20px; margin-top: -8px;} +.admin-specialization-selected ul li { + text-decoration: none; + font-size: 13px; + color: #b7b7b7; + list-style: none; + float: left; + margin-left: 20px; + border-bottom: 1px dashed #b7b7b7; + position: relative; + cursor: pointer; + margin-top: 8px; +} +.admin-specialization-selected ul li:before { + position: absolute; + content: ''; + width: 7px; + height: 7px; + top: 1px; + right: -9px; + background: url("/images/delete-ico-min.png")no-repeat; } \ No newline at end of file diff --git a/frontend/web/images/delete-ico-min.png b/frontend/web/images/delete-ico-min.png new file mode 100644 index 0000000..bbecf0f Binary files /dev/null and b/frontend/web/images/delete-ico-min.png differ -- libgit2 0.21.4