superdesk/superdesk-client-core

View on GitHub
scripts/apps/authoring/multiedit/views/sd-multiedit-article.html

Summary

Maintainability
Test Coverage
<article class="main-article" tabindex="0" ng-class="{locked: isLocked}">
    <div class="main-article__form">
        <div class="main-article__editbar">
            <button class="btn btn--hollow main-article__editbar-button"
                type="button"
                ng-click="remove(item)"
                translate>Remove Item</button>
            <button class="btn btn--primary main-article__editbar-button"
                type="button"
                ng-hide="isPublished(item)"
                ng-click="save(item)"
                ng-disabled="!dirty"
                translate>Save</button>
        </div>

        <div class="main-article__content" ng-if="item != null">
            <div class="state-label state-{{item.state}} sd-margin-b--1">{{item.state}}</div>
            <fieldset ng-disabled="isPublished(item)" sd-article-edit></fieldset>
        </div>
    </div>
</article>