profile.html 1.9 KB

1234567891011121314151617181920212223
  1. <div class="page-header">
  2. <div class="profile-actions">
  3. <button ng-show="exportRuleList" ng-click="exportRuleList(profile.name)" title="{{'options_profileExportRuleListHelp' | tr}}" ng-class="exportRuleListOptions.warning ? 'btn-warning' : 'btn-default'" class="btn"><span class="glyphicon glyphicon-list"></span> {{'options_profileExportRuleList' | tr}}
  4. </button>
  5. <button ng-show="scriptable" ng-click="exportScript(profile.name)" title="{{'options_exportPacFileHelp' | tr}}" class="btn btn-default"><span class="glyphicon glyphicon-download"></span> {{'options_profileExportPac' | tr}}
  6. </button>
  7. <button ng-click="renameProfile(profile.name)" class="btn btn-default"><span class="glyphicon glyphicon-edit"></span> {{'options_renameProfile' | tr}}
  8. </button>
  9. <button ng-click="deleteProfile(profile.name)" class="btn btn-danger"><span class="glyphicon glyphicon-trash"></span> {{'options_deleteProfile' | tr}}
  10. </button>
  11. </div><span class="profile-color-editor">
  12. <div ng-if="profile.profileType == &quot;VirtualProfile&quot;" ng-style="{'background-color': getProfileColor()}" class="profile-color-editor-fake"></div>
  13. <x-spectrum-colorpicker ng-model="profile.color" options="spectrumOptions" ng-if="profile.profileType != &quot;VirtualProfile&quot;"></x-spectrum-colorpicker></span>
  14. <h2 class="profile-name">{{'options_profileTabPrefix' | tr}}{{profile.name}}</h2>
  15. </div>
  16. <section ng-show="profile.syncOptions == &quot;disabled&quot;" class="settings-group">
  17. <p ng-show="!profile.syncError" class="alert alert-info width-limit"><span class="glyphicon glyphicon-info-sign"></span> {{'Syncing is disabled for this profile.'}}
  18. </p>
  19. <p ng-show="!!profile.syncError" class="alert alert-danger width-limit"><span class="glyphicon glyphicon-remove"></span> {{('options_profileSyncDisabled_' + profile.syncError.reason) | tr}}
  20. </p>
  21. </section>
  22. <div ng-include="profileTemplate"></div>