Skip to content

Instantly share code, notes, and snippets.

@mvcaaa
Created September 30, 2015 11:01
Show Gist options
  • Select an option

  • Save mvcaaa/9b8ccc1ad3b0e3f0157c to your computer and use it in GitHub Desktop.

Select an option

Save mvcaaa/9b8ccc1ad3b0e3f0157c to your computer and use it in GitHub Desktop.
angular.module("App").run(["$templateCache", function($templateCache) {$templateCache.put("app/components/country/country.view.tpl.html"," <div class=\"container\">\n\n <form action=\"{{formTarget}}\" method=\"post\" role=\"geoform\" id=\"geoform\" style=\"margin-right:30px\">\n\n <div class=\"form-group\">\n <label for=\"country\">Country:</label>\n <select id=\"country\" name=\"country\" ng-model=\"country\" class=\"form-control\">\n <option value=\"\">Select Country</option>\n <option ng:repeat=\"country in countries\" value=\"{{country.code}}\">{{country.name}}</option>\n </select>\n </div>\n\n <div class=\"form-group\" ng-show=\"country != \'\'\">\n <label for=\"zipcode\">Zipcode:</label>\n <input ng-model=\"zipcode\" id=\"zipcode\" name=\"zipcode\" type=\"text\" placeholder=\"Zipcode\" class=\"form-control\"/>\n </div>\n\n <div class=\"form-group\" ng-show=\"country == \'NL\'\">\n <label for=\"houseNumber\">House Number:</label>\n <input ng-model=\"houseNumber\" id=\"houseNumber\" name=\"house_number\" type=\"text\" placeholder=\"House Number\" class=\"form-control\"/>\n </div>\n\n <div class=\"form-group\" ng-show=\"validZipcode && (country != \'NL\' || houseNumber !== \'\')\">\n <label for=\"city\">City:</label>\n\n <div ng-if=\"cities.length == 0\">{{statusMessage}}</div>\n <div ng-if=\"cities.length == 1\">{{city}}</div>\n <select ng-show=\"cities.length > 1\" id=\"city\" name=\"city\" ng-model=\"city\" class=\"form-control\">\n <option ng:repeat=\"name in cities\" value=\"{{name}}\">{{name}}</option>\n </select>\n\n <input type=\"hidden\" name=\"region_id\" ng-model=\"regionId\" value=\"{{regionId}}\"/>\n <input type=\"hidden\" name=\"old_region_id\" ng-model=\"oldRegionId\" value=\"{{oldRegionId}}\"/>\n <input type=\"hidden\" name=\"city_id\" ng-model=\"cityId\" value=\"{{cityId}}\"/>\n\n <!-- area levels -->\n <div ng-if=\"region != \'\'\">\n <b>Region:</b> {{region}}\n </div>\n </div>\n\n <div class=\"form-group\" ng-show=\"city != \'\'\">\n <label for=\"address\">Address:</label>\n <input ng-model=\"address\" id=\"address\" name=\"address\" type=\"text\" placeholder=\"Address\" class=\"form-control\"/>\n </div>\n\n <div class=\"form-group\" ng-show=\"canSubmit\">\n <input type=\"submit\" value=\"Submit\" class=\"btn btn-default\"/>\n </div>\n\n </form>\n\n </div>");$templateCache.put("vendor/angular-strap/src/alert/alert.tpl.html","<div class=\"alert\" ng-class=\"[type ? \'alert-\' + type : null]\">\n <button type=\"button\" class=\"close\" ng-if=\"dismissable\" ng-click=\"$hide()\">&times;</button>\n <strong ng-bind=\"title\"></strong>&nbsp;<span ng-bind-html=\"content\"></span>\n</div>\n");
@mvcaaa
Copy link
Author

mvcaaa commented Sep 30, 2015

<html ng-app="App">
<head>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
</head>

<body ng-controller="countryController">

<div ng-include=" 'app/components/country/country.view.tpl.html' "></div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment