Skip to content

Instantly share code, notes, and snippets.

@VictorCoding
Created November 22, 2015 18:42
Show Gist options
  • Save VictorCoding/20868ff717ab37a01a25 to your computer and use it in GitHub Desktop.
Save VictorCoding/20868ff717ab37a01a25 to your computer and use it in GitHub Desktop.
FileSync's write template
<!-- <span ng-show="w.FilesToWriteTo.length < 1" class="text-danger">Add some files please before trying anything dumb....Yo cheeky monkey :)</span>
<form name="filePathsForm">
<div class="form-group">
<textarea class="form-control" placeholder="Type here to once, write to ALL!" ng-model="w.TextToWrite"></textarea><br>
<div class="btn-group">
<button type="button" class="btn btn-default" ng-click="w.paste('content')">Paste</button>
<button type="button" class="btn btn-primary" ng-click="w.writeToAll(w.TextToWrite)">Write Bitch!</button>
</div>
</div>
<div class="form-group">
<label class="title">File Path <input class="form-control" id="filepath" name="filepath" type="text" ng-model="w.FileName"></label>
<div class="btn-group">
<button type="button" class="btn btn-success" ng-click="w.addFile(w.FileName)">Add</button>
<button type="button" class="btn btn-default" ng-click="w.paste('filepath')">Paste</button>
</div>
<button ng-show="w.checkedFile && !w.FileExists" class="btn btn-md btn-default btn-danger"><span class="glyphicon glyphicon-thumbs-down"></span></button><br>
</div>
<span ng-show="w.checkedFile && !w.FileExists" class="text-danger">File does not exists in given path. Please double check.</span>
<span ng-show="w.dupFileError" class="text-danger">File already added!</span>
</form>
<label class="title">
Search
<input type="text" class="form-control" placeholder="Check if exists" ng-model="w.valueToSearch" ng-change="w.searchWords(w.ValueToSearch)">
</label>
<br>
<div class="search-results">
<pre ng-repeat="key in w.englishFileContent | filter: w.valueToSearch">{{key}}</pre>
</div>
<br>
<div class="files-list">
<pre ng-repeat="file in w.FilesToWriteTo">{{file}}</pre>
</div> -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment