APTrust/dart

View on GitHub
ui/templates/bagit_profile/import.html

Summary

Maintainability
Test Coverage
<div class="form-group" id="importSourceContainer">
    <div class="form-check">
        <input class="form-check-input" type="radio" name="importSource" id="importSourceUrl" value="URL">
        <label class="form-check-label" for="importSourceUrl">
            {{ translate 'Import from URL' }}
        </label>
    </div>
    <div class="form-check">
        <input class="form-check-input" type="radio" name="importSource" id="importSourceTextArea" value="TextArea">
        <label class="form-check-label" for="importSourceTextArea">
            {{ translate 'Import from JSON (Cut and Paste)' }}
        </label>
    </div>
</div>

<div class="form-group" id="txtUrlContainer" style="display:none;">
    <label class="control-label" for="txtUrl">{{ translate 'Import BagIt Profile from Url' }}</label>
  <input type="text" id="txtUrl" name="txtUrl" class="form-control" placeholder="{{ translate 'Profile Url' }}" />
</div>

<div class="form-group" id="txtJsonContainer" style="display:none;">
    <label class="control-label" for="txtJson">{{ translate 'BagIt Profile JSON' }}</label>
    <textarea id="txtJson" name="txtJson" class="form-control" rows="16"></textarea>
</div>



<div class="bottom-buttons">
  <div class="pull-right">
    <button class="btn btn-primary" type="button" id="btnImport">Import</button>
  </div>
  <div class="pull-right mr-3">
    <button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
  </div>
</div>