diff --git a/src/Bundle/ChillMainBundle/Resources/public/js/collection/collection.scss b/src/Bundle/ChillMainBundle/Resources/public/js/collection/collection.scss index ba2f9ce9e..fedd85e19 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/js/collection/collection.scss +++ b/src/Bundle/ChillMainBundle/Resources/public/js/collection/collection.scss @@ -1,27 +1,25 @@ div.chill-collection { - ul.chill-collection__list { - list-style: none; - padding: 0; - margin-bottom: 1.5rem; - - li.chill-collection__list__entry:nth-child(2n) { - background-color: var(--chill-light-gray); - padding: 0.5rem 0; - } - - // all entries, except the last one - li.chill-collection__list__entry:nth-last-child(1n+2) { - margin-bottom: 1rem; - } - - button.chill-collection__list__remove-entry { - margin-left: 0.5rem; - } - } - - button.chill-collection__button--add { - - - } -} + padding: 1em; + ul.list-entry { + list-style: none; + padding: 0; + margin-bottom: 1.5rem; + + li.entry { + padding: 1em; + border: 1px solid var(--chill-llight-gray); + + &:nth-child(even) { + background-color: var(--chill-llight-gray); + } + } + + button.remove-entry { + margin-left: 0.5rem; + } + } + + button.add-entry { + } +} diff --git a/src/Bundle/ChillMainBundle/Resources/public/js/collection/collections.js b/src/Bundle/ChillMainBundle/Resources/public/js/collection/collections.js index 395f24412..0a4955207 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/js/collection/collections.js +++ b/src/Bundle/ChillMainBundle/Resources/public/js/collection/collections.js @@ -54,7 +54,7 @@ var handleAdd = function(button) { ; content = prototype.replace(new RegExp('__name__', 'g'), counter); entry.innerHTML = content; - entry.classList.add('chill-collection__list__entry'); + entry.classList.add('entry'); initializeRemove(collection, entry); collection.appendChild(entry); @@ -75,7 +75,7 @@ var initializeRemove = function(collection, entry) { return; } - button.classList.add('sc-button', 'bt-delete', 'chill-collection__list__remove-entry'); + button.classList.add('btn', 'btn-delete', 'remove-entry'); button.textContent = content; button.addEventListener('click', function(e) { @@ -110,6 +110,3 @@ window.addEventListener('load', function() { } } }); - - - diff --git a/src/Bundle/ChillMainBundle/Resources/views/Form/fields.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Form/fields.html.twig index 2e403f1f3..e60b1d885 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/Form/fields.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/Form/fields.html.twig @@ -156,9 +156,14 @@ {% block chill_collection_widget %}
-
- {% endif %} {% endblock %} {% block address_widget %}