superdesk/superdesk-client-core

View on GitHub
scripts/core/directives/views/phone-home-modal-directive.html

Summary

Maintainability
Test Coverage
<div sd-modal data-model="phone.enabled" data-close="phone.close()" class="modal-big">
    <div class="modal__header">
        <button class="close" ng-click="phone.close()"><i class="icon-close-small"></i></button>
        <h3 class="modal__heading" translate>Welcome to Superdesk</h3>
    </div>
    <div class="modal__body">
        <p translate>Before you start using your new newsroom, please tell us a little about yourself:</p>

        <!-- Begin MailChimp Signup Form -->
        <div id="mc_embed_signup" ng-show="!phone.done">
        <form action="//sourcefabric.us2.list-manage.com/subscribe/post?u=6b1ad01fc31dc6604968e6439&amp;id=d915449cb0" method="post" id="mc-embedded-subscribe-form" name="phoneForm" class="validate" target="_blank" novalidate ng-submit="phone.submit()">
            <fieldset id="mc_embed_signup_scroll">
        <div class="field">
            <label for="mce-EMAIL">{{ :: 'Email Address' | translate }} <span class="asterisk">*</span>
        </label>
            <input type="email" ng-model="email" name="EMAIL" class="required email" id="mce-EMAIL" ng-required="required">
        </div>
        <div class="field">
            <label for="mce-FNAME">{{ :: 'First Name' | translate }} <span class="asterisk">*</span>
        </label>
            <input type="text" ng-model="firstName" name="FNAME" class="required" id="mce-FNAME" ng-required="required">
        </div>
        <div class="field">
            <label for="mce-LNAME">{{ :: 'Last Name' | translate }} <span class="asterisk">*</span>
        </label>
            <input type="text" ng-model="lastName" name="LNAME" class="required" id="mce-LNAME" ng-required="required">
        </div>
        <div class="field">
            <label for="mce-MMERGE3">{{ :: 'Company/Organisation' | translate }} <span class="asterisk">*</span>
        </label>
            <input type="text" ng-model="org" name="MMERGE3" class="required" id="mce-MMERGE3" ng-required="required">
        </div>
            <div id="mce-responses" class="clear">
                <div class="response" id="mce-error-response" style="display:none"></div>
                <div class="response" id="mce-success-response" style="display:none"></div>
            </div>    <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
            <div style="position: absolute; inset-inline-start: -5000px;" aria-hidden="true"><input type="text" name="b_6b1ad01fc31dc6604968e6439_d915449cb0" tabindex="-1" value=""></div>
            <div class="field">
                <button type="submit" name="subscribe" id="mc-embedded-subscribe" class="btn btn--primary"
                    ng-disabled="phoneForm.$invalid" translate>Send</button>
                <button type="button" class="btn" ng-click="phone.submit()" translate>Skip</button>
            </div>
            </form>
        </form>
        </div>
        <!--End mc_embed_signup-->

        <p translate>We will send occasional updates on Superdesk developments to the email address you have provided. Your data will be kept secure and it won't be used for any other purpose. You may opt-out of receiving further email communications at any time.</p>

        <p translate>Learn more about Superdesk at <a href="https://www.superdesk.org/" title="Superdesk" target="_blank">www.superdesk.org</a>. For help and support, join the discussion on <a href="https://forum.sourcefabric.org/categories/superdesk-dev" title="Superdesk forum" target="_blank">Superdesk forums</a>.</p>

        <p translate>The Superdesk project is developed and maintained on <a href="https://github.com/superdesk" title="Superdesk GitHub" target="_blank">GitHub</a> by <a href="https://www.sourcefabric.org/" title="Sourcefabric" target="_blank">Sourcefabric</a>.</p>
    </div>
    <div class="modal__footer">
        <button class="btn" ng-click="phone.close()">Close</button>
    </div>
</div>