refactoring linear workflow directives
This commit is contained in:
parent
a83a7fe47a
commit
e59d394491
10 changed files with 240 additions and 22 deletions
|
@ -1,19 +1,18 @@
|
|||
<div class="manage-trigger-custom-git-element manage-trigger-control">
|
||||
<div class="linear-workflow"
|
||||
workflow-state="$ctrl.currentState"
|
||||
done-title="Create Trigger"
|
||||
workflow-complete="$ctrl.activateTrigger({'config': $ctrl.config})">
|
||||
<linear-workflow
|
||||
workflow-state="$ctrl.currentState"
|
||||
done-title="Create Trigger"
|
||||
workflow-complete="$ctrl.activateTrigger({'config': $ctrl.config})">
|
||||
<!-- Section: Repository -->
|
||||
<div class="linear-workflow-section row"
|
||||
section-id="repo"
|
||||
section-title="Git Repository"
|
||||
section-valid="$ctrl.config.build_source">
|
||||
<linear-workflow-section
|
||||
class="row"
|
||||
section-id="repo"
|
||||
section-title="Git Repository"
|
||||
section-valid="$ctrl.config.build_source">
|
||||
|
||||
<div class="col-lg-7 col-md-7 col-sm-12 main-col">
|
||||
<h3>Enter repository</h3>
|
||||
<strong>
|
||||
Please enter the HTTP or SSH style URL used to clone your git repository:
|
||||
</strong>
|
||||
<strong>Please enter the HTTP or SSH style URL used to clone your git repository:</strong>
|
||||
<input class="form-control" type="text" placeholder="git@example.com:namespace/repository.git"
|
||||
ng-model="$ctrl.config.build_source"
|
||||
ng-pattern="/(((http|https):\/\/)(.+)|\w+@(.+):(.+))/">
|
||||
|
@ -23,13 +22,14 @@
|
|||
|
||||
<p><b>It is the responsibility of the git repository to invoke a webhook to tell <span class="registry-name" short="true"></span> that a commit has been added.</b></p>
|
||||
</div>
|
||||
</div><!-- /Section: Repository -->
|
||||
</linear-workflow-section><!-- /Section: Repository -->
|
||||
|
||||
<!-- Section: Build context -->
|
||||
<div class="linear-workflow-section row"
|
||||
section-id="dockerfile"
|
||||
section-title="Build context"
|
||||
section-valid="$ctrl.config.subdir">
|
||||
<linear-workflow-section
|
||||
class="row"
|
||||
section-id="dockerfile"
|
||||
section-title="Build context"
|
||||
section-valid="$ctrl.config.subdir">
|
||||
|
||||
<div class="col-lg-7 col-md-7 col-sm-12 main-col">
|
||||
<h3>Select build context directory</h3>
|
||||
|
@ -42,6 +42,56 @@
|
|||
<p>The build context directory is the path of the directory containing the Dockerfile and any other files to be made available when the build is triggered.</p>
|
||||
<p>If the Dockerfile is located at the root of the git repository, enter <code>/</code> as the build context directory.</p>
|
||||
</div>
|
||||
</div><!-- /Section: Build context -->
|
||||
</div>
|
||||
</linear-workflow-section><!-- /Section: Build context -->
|
||||
</linear-workflow>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- FIXME: Remove -->
|
||||
<!--<div class="manage-trigger-custom-git-element manage-trigger-control">-->
|
||||
<!--<div class="linear-workflow"-->
|
||||
<!--workflow-state="$ctrl.currentState"-->
|
||||
<!--done-title="Create Trigger"-->
|
||||
<!--workflow-complete="$ctrl.activateTrigger({'config': $ctrl.config})">-->
|
||||
<!--<!– Section: Repository –>-->
|
||||
<!--<div class="linear-workflow-section row"-->
|
||||
<!--section-id="repo"-->
|
||||
<!--section-title="Git Repository"-->
|
||||
<!--section-valid="$ctrl.config.build_source">-->
|
||||
|
||||
<!--<div class="col-lg-7 col-md-7 col-sm-12 main-col">-->
|
||||
<!--<h3>Enter repository</h3>-->
|
||||
<!--<strong>Please enter the HTTP or SSH style URL used to clone your git repository:</strong>-->
|
||||
<!--<input class="form-control" type="text" placeholder="git@example.com:namespace/repository.git"-->
|
||||
<!--ng-model="$ctrl.config.build_source"-->
|
||||
<!--ng-pattern="/(((http|https):\/\/)(.+)|\w+@(.+):(.+))/">-->
|
||||
<!--</div>-->
|
||||
<!--<div class="col-lg-5 col-md-5 hidden-sm hidden-xs help-col">-->
|
||||
<!--<p>Custom git triggers support any externally accessible git repository, via either the normal git protocol or HTTP.</p>-->
|
||||
|
||||
<!--<p><b>It is the responsibility of the git repository to invoke a webhook to tell <span class="registry-name" short="true"></span> that a commit has been added.</b></p>-->
|
||||
<!--</div>-->
|
||||
<!--</div><!– /Section: Repository –>-->
|
||||
|
||||
<!--<!– Section: Build context –>-->
|
||||
<!--<div class="linear-workflow-section row"-->
|
||||
<!--section-id="dockerfile"-->
|
||||
<!--section-title="Build context"-->
|
||||
<!--section-valid="$ctrl.config.subdir">-->
|
||||
|
||||
<!--<div class="col-lg-7 col-md-7 col-sm-12 main-col">-->
|
||||
<!--<h3>Select build context directory</h3>-->
|
||||
<!--<strong>Please select the build context directory under the git repository:</strong>-->
|
||||
<!--<input class="form-control" type="text" placeholder="/"-->
|
||||
<!--ng-model="$ctrl.config.subdir"-->
|
||||
<!--ng-pattern="/^($|\/|\/.+)/">-->
|
||||
<!--</div>-->
|
||||
<!--<div class="col-lg-5 col-md-5 hidden-sm hidden-xs help-col">-->
|
||||
<!--<p>The build context directory is the path of the directory containing the Dockerfile and any other files to be made available when the build is triggered.</p>-->
|
||||
<!--<p>If the Dockerfile is located at the root of the git repository, enter <code>/</code> as the build context directory.</p>-->
|
||||
<!--</div>-->
|
||||
<!--</div><!– /Section: Build context –>-->
|
||||
<!--</div>-->
|
||||
<!--</div>-->
|
||||
|
||||
|
|
Reference in a new issue