Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 601afef

Browse files
author
Nick Litwin
committed
Rename to tc-file-input directive
1 parent 47d32d5 commit 601afef

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

app/directives/file-form-field/file-form-field.directive.js renamed to app/directives/tc-file-input/tc-file-input.directive.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
(function() {
22
'use strict';
33

4-
angular.module('tcUIComponents').directive('fileFormField', fileFormField);
4+
angular.module('tcUIComponents').directive('tcFileInput', tcFileInput);
55

6-
function fileFormField() {
6+
function tcFileInput() {
77
return {
88
restrict: 'E',
9-
templateUrl: 'directives/file-form-field/file-form-field.html',
9+
templateUrl: 'directives/tc-file-input/tc-file-input.html',
1010
scope: {
1111
labelText: '@',
1212
fieldId: '@',

app/directives/file-form-field/file-form-field.jade renamed to app/directives/tc-file-input/tc-file-input.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
label.tc-label {{labelText}}
33
span.lowercase(ng-if="fileType") {{fileType | addBeginningSpace}}
44

5-
span.tc-label__mandatory(ng-if="mandatory") #[span *]mandatory
5+
span.tc-label__mandatory.lowercase(ng-if="mandatory") #[span *]mandatory
66

77
.changenamelater
88
input(type="text", placeholder="{{placeholder}}", disabled)

app/directives/file-form-field/file-form-field.spec.js renamed to app/directives/tc-file-input/tc-file-input.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* jshint -W117, -W030 */
2-
describe('File Form Field Directive', function() {
2+
describe('Topcoder File Input Directive', function() {
33
var scope;
44

55
// USE AS TEMPLATE FOR DIRECTIVES

0 commit comments

Comments
 (0)