mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-19 13:54:25 +01:00
remove useless references to asset_pack_path or equivalents
This commit is contained in:
parent
44ca50b4e1
commit
6e5713438f
@ -87,7 +87,7 @@ class AuthenticationController {
|
||||
*/
|
||||
$scope.defineDataMapping = function (mapping) {
|
||||
$uibModal.open({
|
||||
templateUrl: '<%= asset_pack_path "admin/authentications/_data_mapping.html" %>',
|
||||
templateUrl: 'admin/authentications/_data_mapping.html',
|
||||
size: 'md',
|
||||
resolve: {
|
||||
field () { return mapping; },
|
||||
|
@ -273,7 +273,7 @@ Application.Controllers.controller('AdminCalendarController', ['$scope', '$state
|
||||
// open a confirmation dialog
|
||||
const modalInstance = $uibModal.open({
|
||||
animation: true,
|
||||
templateUrl: '<%= asset_pack_path "admin/calendar/deleteRecurrent.html" %>',
|
||||
templateUrl: 'admin/calendar/deleteRecurrent.html',
|
||||
size: 'md',
|
||||
controller: 'DeleteRecurrentAvailabilityController',
|
||||
resolve: {
|
||||
@ -419,7 +419,7 @@ Application.Controllers.controller('AdminCalendarController', ['$scope', '$state
|
||||
|
||||
// then we open a modal window to let the admin specify the slot type
|
||||
const modalInstance = $uibModal.open({
|
||||
templateUrl: '<%= asset_pack_path "admin/calendar/eventModal.html" %>',
|
||||
templateUrl: 'admin/calendar/eventModal.html',
|
||||
controller: 'CreateEventModalController',
|
||||
backdrop: 'static',
|
||||
keyboard: false,
|
||||
|
@ -279,7 +279,7 @@ Application.Controllers.controller('AdminEventsController', ['$scope', '$state',
|
||||
*/
|
||||
$scope.newPriceCategory = function () {
|
||||
$uibModal.open({
|
||||
templateUrl: '<%= asset_pack_path "admin/events/price_form.html" %>',
|
||||
templateUrl: 'admin/events/price_form.html',
|
||||
size: 'md',
|
||||
resolve: {
|
||||
category () { return {}; }
|
||||
@ -307,7 +307,7 @@ Application.Controllers.controller('AdminEventsController', ['$scope', '$state',
|
||||
return growl.error(_t('app.admin.events.unexpected_error_occurred_please_refresh'));
|
||||
} else {
|
||||
return $uibModal.open({
|
||||
templateUrl: '<%= asset_pack_path "admin/events/price_form.html" %>',
|
||||
templateUrl: 'admin/events/price_form.html',
|
||||
size: 'md',
|
||||
resolve: {
|
||||
category () { return $scope.priceCategories[index]; }
|
||||
@ -645,7 +645,7 @@ Application.Controllers.controller('EditEventController', ['$scope', '$state', '
|
||||
// open a choice edit-mode dialog
|
||||
const modalInstance = $uibModal.open({
|
||||
animation: true,
|
||||
templateUrl: '<%= asset_pack_path "events/editRecurrent.html" %>',
|
||||
templateUrl: 'events/editRecurrent.html',
|
||||
size: 'md',
|
||||
controller: 'EditRecurrentEventController',
|
||||
resolve: {
|
||||
|
@ -220,7 +220,7 @@ Application.Controllers.controller('InvoicesController', ['$scope', '$state', 'I
|
||||
$scope.generateAvoirForInvoice = function (invoice) {
|
||||
// open modal
|
||||
const modalInstance = $uibModal.open({
|
||||
templateUrl: '<%= asset_pack_path "admin/invoices/avoirModal.html" %>',
|
||||
templateUrl: 'admin/invoices/avoirModal.html',
|
||||
controller: 'AvoirModalController',
|
||||
resolve: {
|
||||
invoice () { return invoice; },
|
||||
@ -579,7 +579,7 @@ Application.Controllers.controller('InvoicesController', ['$scope', '$state', 'I
|
||||
$scope.closeAnAccountingPeriod = function() {
|
||||
// open modal
|
||||
$uibModal.open({
|
||||
templateUrl: '<%= asset_pack_path "admin/invoices/closePeriodModal.html" %>',
|
||||
templateUrl: 'admin/invoices/closePeriodModal.html',
|
||||
controller: 'ClosePeriodModalController',
|
||||
backdrop: 'static',
|
||||
keyboard: false,
|
||||
@ -593,7 +593,7 @@ Application.Controllers.controller('InvoicesController', ['$scope', '$state', 'I
|
||||
|
||||
$scope.toggleExportModal = function() {
|
||||
$uibModal.open({
|
||||
templateUrl: '<%= asset_pack_path "admin/invoices/accountingExportModal.html" %>',
|
||||
templateUrl: 'admin/invoices/accountingExportModal.html',
|
||||
controller: 'AccountingExportModalController',
|
||||
size: 'xl'
|
||||
});
|
||||
|
@ -236,7 +236,7 @@ Application.Controllers.controller('AdminMembersController', ['$scope', '$sce',
|
||||
$scope.openPartnerNewModal = function () {
|
||||
const modalInstance = $uibModal.open({
|
||||
animation: true,
|
||||
templateUrl: '<%= asset_pack_path "shared/_partner_new_modal.html" %>',
|
||||
templateUrl: 'shared/_partner_new_modal.html',
|
||||
size: 'lg',
|
||||
controller: ['$scope', '$uibModalInstance', 'User', function ($scope, $uibModalInstance, User) {
|
||||
$scope.partner = {};
|
||||
@ -702,7 +702,7 @@ Application.Controllers.controller('EditMemberController', ['$scope', '$state',
|
||||
$scope.changeUserRole = function() {
|
||||
const modalInstance = $uibModal.open({
|
||||
animation: true,
|
||||
templateUrl: '<%= asset_pack_path "admin/members/change_role_modal.html" %>',
|
||||
templateUrl: 'admin/members/change_role_modal.html',
|
||||
size: 'lg',
|
||||
resolve: {
|
||||
user() { return $scope.user; }
|
||||
@ -750,7 +750,7 @@ Application.Controllers.controller('EditMemberController', ['$scope', '$state',
|
||||
$scope.updateSubscriptionModal = function (subscription, free) {
|
||||
const modalInstance = $uibModal.open({
|
||||
animation: true,
|
||||
templateUrl: '<%= asset_pack_path "admin/subscriptions/expired_at_modal.html" %>',
|
||||
templateUrl: 'admin/subscriptions/expired_at_modal.html',
|
||||
size: 'lg',
|
||||
controller: ['$scope', '$uibModalInstance', 'Subscription', function ($scope, $uibModalInstance, Subscription) {
|
||||
$scope.new_expired_at = angular.copy(subscription.expired_at);
|
||||
@ -797,7 +797,7 @@ Application.Controllers.controller('EditMemberController', ['$scope', '$state',
|
||||
$scope.createSubscriptionModal = function (user, plans) {
|
||||
const modalInstance = $uibModal.open({
|
||||
animation: true,
|
||||
templateUrl: '<%= asset_pack_path "admin/subscriptions/create_modal.html" %>',
|
||||
templateUrl: 'admin/subscriptions/create_modal.html',
|
||||
size: 'lg',
|
||||
controller: ['$scope', '$uibModalInstance', 'Subscription', 'Group', function ($scope, $uibModalInstance, Subscription, Group) {
|
||||
// selected user
|
||||
@ -845,7 +845,7 @@ Application.Controllers.controller('EditMemberController', ['$scope', '$state',
|
||||
$scope.createWalletCreditModal = function (user, wallet) {
|
||||
const modalInstance = $uibModal.open({
|
||||
animation: true,
|
||||
templateUrl: '<%= asset_pack_path "wallet/credit_modal.html" %>',
|
||||
templateUrl: 'wallet/credit_modal.html',
|
||||
controller: ['$scope', '$uibModalInstance', 'Wallet', function ($scope, $uibModalInstance, Wallet) {
|
||||
// default: do not generate a refund invoice
|
||||
$scope.generate_avoir = false;
|
||||
|
@ -106,7 +106,7 @@ Application.Controllers.controller('NewPlanController', ['$scope', '$uibModal',
|
||||
$scope.openPartnerNewModal = function (subscription) {
|
||||
const modalInstance = $uibModal.open({
|
||||
animation: true,
|
||||
templateUrl: '<%= asset_pack_path "shared/_partner_new_modal.html" %>',
|
||||
templateUrl: 'shared/_partner_new_modal.html',
|
||||
size: 'lg',
|
||||
controller: ['$scope', '$uibModalInstance', 'User', function ($scope, $uibModalInstance, User) {
|
||||
$scope.partner = {};
|
||||
|
@ -570,7 +570,7 @@ Application.Controllers.controller('EditPricingController', ['$scope', '$state',
|
||||
*/
|
||||
$scope.sendCouponToUser = function (coupon) {
|
||||
$uibModal.open({
|
||||
templateUrl: '<%= asset_pack_path "admin/pricing/sendCoupon.html" %>',
|
||||
templateUrl: 'admin/pricing/sendCoupon.html',
|
||||
resolve: {
|
||||
coupon () { return coupon; }
|
||||
},
|
||||
|
@ -173,7 +173,7 @@ Application.Controllers.controller('SettingsController', ['$scope', '$rootScope'
|
||||
$scope.savePrivacyPolicy = function () {
|
||||
// open modal
|
||||
const modalInstance = $uibModal.open({
|
||||
templateUrl: '<%= asset_pack_path "admin/settings/save_policy.html" %>',
|
||||
templateUrl: 'admin/settings/save_policy.html',
|
||||
controller: 'SavePolicyController',
|
||||
resolve: {
|
||||
saveCb () { return $scope.save; },
|
||||
@ -274,7 +274,7 @@ Application.Controllers.controller('SettingsController', ['$scope', '$rootScope'
|
||||
*/
|
||||
$scope.analyticsModal = function() {
|
||||
$uibModal.open({
|
||||
templateUrl: '<%= asset_pack_path "admin/settings/analyticsModal.html" %>',
|
||||
templateUrl: 'admin/settings/analyticsModal.html',
|
||||
controller: 'AnalyticsModalController',
|
||||
size: 'lg',
|
||||
resolve: {
|
||||
|
@ -311,7 +311,7 @@ Application.Controllers.controller('StatisticsController', ['$scope', '$state',
|
||||
*/
|
||||
$scope.exportToExcel = function () {
|
||||
const options = {
|
||||
templateUrl: '<%= asset_pack_path "admin/statistics/export.html" %>',
|
||||
templateUrl: 'admin/statistics/export.html',
|
||||
size: 'sm',
|
||||
controller: 'ExportStatisticsController',
|
||||
resolve: {
|
||||
|
@ -221,7 +221,7 @@ Application.Controllers.controller('TrainingsAdminController', ['$scope', '$stat
|
||||
*/
|
||||
$scope.showReservations = function (training, availability) {
|
||||
$uibModal.open({
|
||||
templateUrl: '<%= asset_pack_path "admin/trainings/validTrainingModal.html" %>',
|
||||
templateUrl: 'admin/trainings/validTrainingModal.html',
|
||||
controller: ['$scope', '$uibModalInstance', function ($scope, $uibModalInstance) {
|
||||
$scope.availability = availability;
|
||||
|
||||
|
@ -89,7 +89,7 @@ Application.Controllers.controller('ApplicationController', ['$rootScope', '$sco
|
||||
<% else %>
|
||||
|
||||
return $uibModal.open({
|
||||
templateUrl: '<%= asset_pack_path "shared/signupModal.html" %>',
|
||||
templateUrl: 'shared/signupModal.html',
|
||||
size: 'md',
|
||||
resolve: {
|
||||
settingsPromise: ['Setting', function (Setting) { return Setting.query({ names: "['phone_required', 'recaptcha_site_key', 'confirmation_required']" }).$promise; }]
|
||||
@ -192,7 +192,7 @@ Application.Controllers.controller('ApplicationController', ['$rootScope', '$sco
|
||||
*/
|
||||
$scope.editPassword = function (token) {
|
||||
$uibModal.open({
|
||||
templateUrl: '<%= asset_pack_path "shared/passwordEditModal.html" %>',
|
||||
templateUrl: 'shared/passwordEditModal.html',
|
||||
size: 'md',
|
||||
controller: ['$scope', '$uibModalInstance', '$http', function ($scope, $uibModalInstance, $http) {
|
||||
$scope.user = { reset_password_token: token };
|
||||
@ -282,7 +282,7 @@ Application.Controllers.controller('ApplicationController', ['$rootScope', '$sco
|
||||
if ($rootScope.currentUser.role !== 'admin') return;
|
||||
|
||||
$uibModal.open({
|
||||
templateUrl: '<%= asset_pack_path "admin/versions/upgradeModal.html" %>',
|
||||
templateUrl: 'admin/versions/upgradeModal.html',
|
||||
controller: 'VersionModalController',
|
||||
resolve: {
|
||||
version() { return $scope.version; }
|
||||
@ -407,7 +407,7 @@ Application.Controllers.controller('ApplicationController', ['$rootScope', '$sco
|
||||
$window.location.href = '/sso-redirect';
|
||||
<% else %>
|
||||
return $uibModal.open({
|
||||
templateUrl: '<%= asset_pack_path "shared/deviseModal.html" %>',
|
||||
templateUrl: 'shared/deviseModal.html',
|
||||
size: 'sm',
|
||||
resolve: {
|
||||
settingsPromise: ['Setting', function (Setting) { return Setting.query({ names: "['confirmation_required']" }).$promise; }]
|
||||
@ -470,7 +470,7 @@ Application.Controllers.controller('ApplicationController', ['$rootScope', '$sco
|
||||
} else if (reason === 'resetPassword') {
|
||||
// open the 'reset password' modal
|
||||
return $uibModal.open({
|
||||
templateUrl: '<%= asset_pack_path "shared/passwordNewModal.html" %>',
|
||||
templateUrl: 'shared/passwordNewModal.html',
|
||||
size: 'sm',
|
||||
controller: ['$scope', '$uibModalInstance', '$http', function ($scope, $uibModalInstance, $http) {
|
||||
$scope.user = { email: '' };
|
||||
@ -488,7 +488,7 @@ Application.Controllers.controller('ApplicationController', ['$rootScope', '$sco
|
||||
} else if (reason === 'confirmationNew') {
|
||||
// open the 'reset password' modal
|
||||
return $uibModal.open({
|
||||
templateUrl: '<%= asset_pack_path "shared/ConfirmationNewModal.html" %>',
|
||||
templateUrl: 'shared/ConfirmationNewModal.html',
|
||||
size: 'sm',
|
||||
controller: ['$scope', '$uibModalInstance', '$http', function ($scope, $uibModalInstance, $http) {
|
||||
$scope.user = { email: '' };
|
||||
|
@ -186,7 +186,7 @@ Application.Controllers.controller('ShowEventController', ['$scope', '$state', '
|
||||
// open a confirmation dialog
|
||||
const modalInstance = $uibModal.open({
|
||||
animation: true,
|
||||
templateUrl: '<%= asset_pack_path "events/deleteRecurrent.html" %>',
|
||||
templateUrl: 'events/deleteRecurrent.html',
|
||||
size: 'md',
|
||||
controller: 'DeleteRecurrentEventController',
|
||||
resolve: {
|
||||
@ -416,7 +416,7 @@ Application.Controllers.controller('ShowEventController', ['$scope', '$state', '
|
||||
$scope.modifyReservation = function (reservation) {
|
||||
const index = $scope.reservations.indexOf(reservation);
|
||||
return $uibModal.open({
|
||||
templateUrl: '<%= asset_pack_path "events/modify_event_reservation_modal.html" %>',
|
||||
templateUrl: 'events/modify_event_reservation_modal.html',
|
||||
resolve: {
|
||||
event () { return $scope.event; },
|
||||
reservation () { return reservation; }
|
||||
@ -671,7 +671,7 @@ Application.Controllers.controller('ShowEventController', ['$scope', '$state', '
|
||||
*/
|
||||
const payByStripe = function (reservation) {
|
||||
$uibModal.open({
|
||||
templateUrl: '<%= asset_pack_path "stripe/payment_modal.html" %>',
|
||||
templateUrl: 'stripe/payment_modal.html',
|
||||
size: 'md',
|
||||
resolve: {
|
||||
reservation () {
|
||||
@ -739,7 +739,7 @@ Application.Controllers.controller('ShowEventController', ['$scope', '$state', '
|
||||
*/
|
||||
const payOnSite = function (reservation) {
|
||||
$uibModal.open({
|
||||
templateUrl: '<%= asset_pack_path "shared/valid_reservation_modal.html" %>',
|
||||
templateUrl: 'shared/valid_reservation_modal.html',
|
||||
size: 'sm',
|
||||
resolve: {
|
||||
reservation () {
|
||||
@ -858,7 +858,7 @@ Application.Controllers.controller('ShowEventController', ['$scope', '$state', '
|
||||
const showReserveSlotSameTimeModal = function(sameTimeReservations, callback) {
|
||||
const modalInstance = $uibModal.open({
|
||||
animation: true,
|
||||
templateUrl: '<%= asset_pack_path "shared/_reserve_slot_same_time.html" %>',
|
||||
templateUrl: 'shared/_reserve_slot_same_time.html',
|
||||
size: 'md',
|
||||
controller: 'ReserveSlotSameTimeController',
|
||||
resolve: {
|
||||
|
@ -121,7 +121,7 @@ const _reserveMachine = function (machine, e) {
|
||||
// the training before he can book the reservation
|
||||
if (machine.current_user_training_reservation) {
|
||||
return _this.$uibModal.open({
|
||||
templateUrl: '<%= asset_pack_path "machines/training_reservation_modal.html" %>',
|
||||
templateUrl: 'machines/training_reservation_modal.html',
|
||||
controller: ['$scope', '$uibModalInstance', function ($scope, $uibModalInstance) {
|
||||
$scope.machine = machine;
|
||||
return $scope.cancel = function () { $uibModalInstance.dismiss('cancel'); };
|
||||
@ -136,7 +136,7 @@ const _reserveMachine = function (machine, e) {
|
||||
// otherwise open the information modal
|
||||
} else {
|
||||
return _this.$uibModal.open({
|
||||
templateUrl: '<%= asset_pack_path "machines/request_training_modal.html" %>',
|
||||
templateUrl: 'machines/request_training_modal.html',
|
||||
controller: ['$scope', '$uibModalInstance', '$state', function ($scope, $uibModalInstance, $state) {
|
||||
$scope.machine = machine;
|
||||
$scope.member = _this.$scope.currentUser;
|
||||
|
@ -235,7 +235,7 @@ Application.Controllers.controller('PlansIndexController', ['$scope', '$rootScop
|
||||
*/
|
||||
const payByStripe = function () {
|
||||
$uibModal.open({
|
||||
templateUrl: '<%= asset_pack_path "stripe/payment_modal.html" %>',
|
||||
templateUrl: 'stripe/payment_modal.html',
|
||||
size: 'md',
|
||||
resolve: {
|
||||
selectedPlan () { return $scope.selectedPlan; },
|
||||
@ -299,7 +299,7 @@ Application.Controllers.controller('PlansIndexController', ['$scope', '$rootScop
|
||||
*/
|
||||
const payOnSite = function () {
|
||||
$uibModal.open({
|
||||
templateUrl: '<%= asset_pack_path "plans/payment_modal.html" %>',
|
||||
templateUrl: 'plans/payment_modal.html',
|
||||
size: 'sm',
|
||||
resolve: {
|
||||
selectedPlan () { return $scope.selectedPlan; },
|
||||
|
@ -167,7 +167,7 @@ Application.Controllers.controller('CompleteProfileController', ['$scope', '$roo
|
||||
event.stopPropagation();
|
||||
dialogs.confirm(
|
||||
{
|
||||
templateUrl: '<%= asset_pack_path "profile/resend_code_modal.html" %>',
|
||||
templateUrl: 'profile/resend_code_modal.html',
|
||||
resolve: {
|
||||
object () {
|
||||
return { email: memberPromise.email };
|
||||
|
@ -587,7 +587,7 @@ Application.Controllers.controller('ShowProjectController', ['$scope', '$state',
|
||||
if (e) { e.preventDefault(); }
|
||||
|
||||
$uibModal.open({
|
||||
templateUrl: '<%= asset_pack_path "shared/signalAbuseModal.html" %>',
|
||||
templateUrl: 'shared/signalAbuseModal.html',
|
||||
size: 'md',
|
||||
resolve: {
|
||||
project () { return $scope.project; }
|
||||
|
@ -39,7 +39,7 @@ Application.Directives.directive('cart', [ '$rootScope', '$uibModal', 'dialogs',
|
||||
reservableName: '@',
|
||||
limitToOneSlot: '@'
|
||||
},
|
||||
templateUrl: '<%= asset_pack_path "shared/_cart.html" %>',
|
||||
templateUrl: 'shared/_cart.html',
|
||||
link ($scope, element, attributes) {
|
||||
// will store the user's plan if he choosed to buy one
|
||||
$scope.selectedPlan = null;
|
||||
@ -174,7 +174,7 @@ Application.Directives.directive('cart', [ '$rootScope', '$uibModal', 'dialogs',
|
||||
} else {
|
||||
const modalInstance = $uibModal.open({
|
||||
animation: true,
|
||||
templateUrl: '<%= asset_pack_path "shared/_reserve_slot_without_plan.html" %>',
|
||||
templateUrl: 'shared/_reserve_slot_without_plan.html',
|
||||
size: 'md',
|
||||
controller: 'ReserveSlotWithoutPlanController',
|
||||
resolve: {
|
||||
@ -318,7 +318,7 @@ Application.Directives.directive('cart', [ '$rootScope', '$uibModal', 'dialogs',
|
||||
// ask confirmation
|
||||
const modalInstance = $uibModal.open({
|
||||
animation: true,
|
||||
templateUrl: '<%= asset_pack_path "shared/_reserve_slot_tags_mismatch.html" %>',
|
||||
templateUrl: 'shared/_reserve_slot_tags_mismatch.html',
|
||||
size: 'md',
|
||||
controller: 'ReserveSlotTagsMismatchController',
|
||||
resolve: {
|
||||
@ -357,7 +357,7 @@ Application.Directives.directive('cart', [ '$rootScope', '$uibModal', 'dialogs',
|
||||
if (sameTimeReservations.length > 0) {
|
||||
const modalInstance = $uibModal.open({
|
||||
animation: true,
|
||||
templateUrl: '<%= asset_pack_path "shared/_reserve_slot_same_time.html" %>',
|
||||
templateUrl: 'shared/_reserve_slot_same_time.html',
|
||||
size: 'md',
|
||||
controller: 'ReserveSlotSameTimeController',
|
||||
resolve: {
|
||||
@ -447,7 +447,7 @@ Application.Directives.directive('cart', [ '$rootScope', '$uibModal', 'dialogs',
|
||||
$scope.slot.cancelable = slotCanBeCanceled($scope.slot);
|
||||
// -> then, we open a dialog to ask to the user to choose an action
|
||||
return dialogs.confirm({
|
||||
templateUrl: '<%= asset_pack_path "shared/confirm_modify_slot_modal.html" %>',
|
||||
templateUrl: 'shared/confirm_modify_slot_modal.html',
|
||||
resolve: {
|
||||
object () { return $scope.slot; }
|
||||
}
|
||||
@ -612,7 +612,7 @@ Application.Directives.directive('cart', [ '$rootScope', '$uibModal', 'dialogs',
|
||||
*/
|
||||
const payByStripe = function (reservation) {
|
||||
$uibModal.open({
|
||||
templateUrl: '<%= asset_pack_path "stripe/payment_modal.html" %>',
|
||||
templateUrl: 'stripe/payment_modal.html',
|
||||
size: 'md',
|
||||
resolve: {
|
||||
reservation () {
|
||||
@ -673,7 +673,7 @@ Application.Directives.directive('cart', [ '$rootScope', '$uibModal', 'dialogs',
|
||||
*/
|
||||
const payOnSite = function (reservation) {
|
||||
$uibModal.open({
|
||||
templateUrl: '<%= asset_pack_path "shared/valid_reservation_modal.html" %>',
|
||||
templateUrl: 'shared/valid_reservation_modal.html',
|
||||
size: 'sm',
|
||||
resolve: {
|
||||
reservation () {
|
||||
|
@ -18,7 +18,7 @@ Application.Directives.directive('coupon', [ '$rootScope', 'Coupon', '_t', funct
|
||||
total: '=',
|
||||
userId: '@'
|
||||
},
|
||||
templateUrl: '<%= asset_pack_path "shared/_coupon.html" %>',
|
||||
templateUrl: 'shared/_coupon.html',
|
||||
link ($scope, element, attributes) {
|
||||
// Whether code input is shown or not (ie. the link 'I have a coupon' is shown)
|
||||
$scope.code =
|
||||
|
@ -15,6 +15,6 @@ Application.Directives.directive('fabUserAvatar', [ function () {
|
||||
userAvatar: '=ngModel',
|
||||
avatarClass: '@'
|
||||
},
|
||||
templateUrl: '<%= asset_pack_path "shared/_user_avatar.html" %>'
|
||||
templateUrl: 'shared/_user_avatar.html'
|
||||
});
|
||||
}]);
|
||||
|
@ -2,7 +2,7 @@ Application.Directives.directive('events', [ 'Event',
|
||||
function (Event) {
|
||||
return ({
|
||||
restrict: 'E',
|
||||
templateUrl: '<%= asset_pack_path "home/events.html" %>',
|
||||
templateUrl: 'home/events.html',
|
||||
link ($scope, element, attributes) {
|
||||
// The closest upcoming events
|
||||
$scope.upcomingEvents = null;
|
||||
|
@ -2,7 +2,7 @@ Application.Directives.directive('news', [ 'Setting',
|
||||
function (Setting) {
|
||||
return ({
|
||||
restrict: 'E',
|
||||
templateUrl: '<%= asset_pack_path "home/news.html" %>',
|
||||
templateUrl: 'home/news.html',
|
||||
link ($scope, element, attributes) {
|
||||
// The admin blogpost
|
||||
$scope.homeBlogpost = null;
|
||||
|
@ -2,7 +2,7 @@ Application.Directives.directive('projects', [ 'Project',
|
||||
function (Project) {
|
||||
return ({
|
||||
restrict: 'E',
|
||||
templateUrl: '<%= asset_pack_path "home/projects.html" %>',
|
||||
templateUrl: 'home/projects.html',
|
||||
link ($scope, element, attributes) {
|
||||
// The last projects published/documented on the platform
|
||||
$scope.lastProjects = null;
|
||||
|
@ -8,7 +8,7 @@ Application.Directives.directive('twitter', ['Setting',
|
||||
function (Setting) {
|
||||
return ({
|
||||
restrict: 'E',
|
||||
templateUrl: '<%= asset_pack_path "home/twitter.html" %>',
|
||||
templateUrl: 'home/twitter.html',
|
||||
link ($scope, element, attributes) {
|
||||
// Twitter username
|
||||
$scope.twitterName = null;
|
||||
|
@ -2,7 +2,7 @@ Application.Directives.directive('members', [ 'Member',
|
||||
function (Member) {
|
||||
return ({
|
||||
restrict: 'E',
|
||||
templateUrl: '<%= asset_pack_path "home/members.html" %>',
|
||||
templateUrl: 'home/members.html',
|
||||
link ($scope, element, attributes) {
|
||||
// The last registered members who confirmed their addresses
|
||||
$scope.lastMembers = null;
|
||||
|
@ -11,7 +11,7 @@
|
||||
Application.Directives.directive('selectMember', [ 'Diacritics', 'Member', function (Diacritics, Member) {
|
||||
return ({
|
||||
restrict: 'E',
|
||||
templateUrl: '<%= asset_pack_path "shared/_member_select.html" %>',
|
||||
templateUrl: 'shared/_member_select.html',
|
||||
link (scope, element, attributes) {
|
||||
return scope.autoCompleteName = function (nameLookup) {
|
||||
if (!nameLookup) {
|
||||
|
@ -11,7 +11,7 @@ Application.Directives.directive('booleanSetting', ['Setting', 'growl', '_t',
|
||||
classes: '@',
|
||||
onBeforeSave: '='
|
||||
},
|
||||
templateUrl: '<%= asset_pack_path "admin/settings/boolean.html" %>',
|
||||
templateUrl: 'admin/settings/boolean.html',
|
||||
link ($scope, element, attributes) {
|
||||
// The setting
|
||||
$scope.setting = {
|
||||
|
@ -12,7 +12,7 @@ Application.Directives.directive('numberSetting', ['Setting', 'growl', '_t',
|
||||
min: '@',
|
||||
required: '<'
|
||||
},
|
||||
templateUrl: '<%= asset_pack_path "admin/settings/number.html" %>',
|
||||
templateUrl: 'admin/settings/number.html',
|
||||
link ($scope, element, attributes) {
|
||||
// The setting
|
||||
$scope.setting = {
|
||||
|
@ -12,7 +12,7 @@ Application.Directives.directive('selectMultipleSetting', ['Setting', 'growl', '
|
||||
descriptionNew: '@',
|
||||
beforeAdd: '='
|
||||
},
|
||||
templateUrl: '<%= asset_pack_path "admin/settings/select-multiple.html" %>',
|
||||
templateUrl: 'admin/settings/select-multiple.html',
|
||||
link ($scope, element, attributes) {
|
||||
// The setting
|
||||
$scope.setting = {
|
||||
|
@ -14,7 +14,7 @@ Application.Directives.directive('selectSetting', ['Setting', 'growl', '_t',
|
||||
option4: '<',
|
||||
option5: '<'
|
||||
},
|
||||
templateUrl: '<%= asset_pack_path "admin/settings/select.html" %>',
|
||||
templateUrl: 'admin/settings/select.html',
|
||||
link ($scope, element, attributes) {
|
||||
// The setting
|
||||
$scope.setting = {
|
||||
|
@ -15,7 +15,7 @@ Application.Directives.directive('textSetting', ['Setting', 'growl', '_t',
|
||||
minLength: '@',
|
||||
readOnly: '<'
|
||||
},
|
||||
templateUrl: '<%= asset_pack_path "admin/settings/text.html" %>',
|
||||
templateUrl: 'admin/settings/text.html',
|
||||
link ($scope, element, attributes) {
|
||||
// if type is not specified, use text as default
|
||||
if (typeof $scope.type === 'undefined') {
|
||||
|
@ -16,13 +16,13 @@ Application.Directives.directive('socialLink', [ function () {
|
||||
network: '@?',
|
||||
user: '='
|
||||
},
|
||||
templateUrl: '<%= asset_pack_path "shared/_social_link.html" %>',
|
||||
templateUrl: 'shared/_social_link.html',
|
||||
link (scope, element, attributes) {
|
||||
if (scope.network === 'dailymotion') {
|
||||
scope.image = "<%= asset_pack_path('social/dailymotion.png') %>";
|
||||
scope.image = "social/dailymotion.png";
|
||||
return scope.altText = 'd';
|
||||
} else if (scope.network === 'echosciences') {
|
||||
scope.image = "<%= asset_pack_path('social/echosciences.png') %>";
|
||||
scope.image = "social/echosciences.png";
|
||||
return scope.altText = 'E)';
|
||||
} else {
|
||||
if (scope.network === 'website') {
|
||||
|
@ -21,14 +21,14 @@ angular.module('application.router', ['ui.router'])
|
||||
abstract: true,
|
||||
views: {
|
||||
'header': {
|
||||
templateUrl: '<%= asset_pack_path "shared/header.html" %>'
|
||||
templateUrl: 'shared/header.html'
|
||||
},
|
||||
'leftnav': {
|
||||
templateUrl: '<%= asset_pack_path "shared/leftnav.html" %>',
|
||||
templateUrl: 'shared/leftnav.html',
|
||||
controller: 'MainNavController'
|
||||
},
|
||||
'cookies': {
|
||||
templateUrl: '<%= asset_pack_path "shared/cookies.html" %>',
|
||||
templateUrl: 'shared/cookies.html',
|
||||
controller: 'CookiesController'
|
||||
},
|
||||
'main': {}
|
||||
@ -92,7 +92,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/about',
|
||||
views: {
|
||||
'content@': {
|
||||
templateUrl: '<%= asset_pack_path "shared/about.html" %>',
|
||||
templateUrl: 'shared/about.html',
|
||||
controller: 'AboutController'
|
||||
}
|
||||
}
|
||||
@ -101,7 +101,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/?reset_password_token',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "home.html" %>',
|
||||
templateUrl: 'home.html',
|
||||
controller: 'HomeController'
|
||||
}
|
||||
},
|
||||
@ -113,7 +113,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/privacy-policy',
|
||||
views: {
|
||||
'content@': {
|
||||
templateUrl: '<%= asset_pack_path "shared/privacy.html" %>',
|
||||
templateUrl: 'shared/privacy.html',
|
||||
controller: 'PrivacyController'
|
||||
}
|
||||
}
|
||||
@ -124,7 +124,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/profile_completion',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "profile/complete.html"%>',
|
||||
templateUrl: 'profile/complete.html',
|
||||
controller: 'CompleteProfileController'
|
||||
}
|
||||
},
|
||||
@ -150,7 +150,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/profile',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "dashboard/profile.html" %>',
|
||||
templateUrl: 'dashboard/profile.html',
|
||||
controller: 'DashboardController'
|
||||
}
|
||||
}
|
||||
@ -159,7 +159,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/settings',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "dashboard/settings.html" %>',
|
||||
templateUrl: 'dashboard/settings.html',
|
||||
controller: 'EditProfileController'
|
||||
}
|
||||
},
|
||||
@ -173,7 +173,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/projects',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "dashboard/projects.html" %>',
|
||||
templateUrl: 'dashboard/projects.html',
|
||||
controller: 'DashboardController'
|
||||
}
|
||||
}
|
||||
@ -182,7 +182,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/trainings',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "dashboard/trainings.html" %>',
|
||||
templateUrl: 'dashboard/trainings.html',
|
||||
controller: 'DashboardController'
|
||||
}
|
||||
}
|
||||
@ -191,7 +191,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/events',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "dashboard/events.html" %>',
|
||||
templateUrl: 'dashboard/events.html',
|
||||
controller: 'DashboardController'
|
||||
}
|
||||
}
|
||||
@ -200,7 +200,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/invoices',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "dashboard/invoices.html" %>',
|
||||
templateUrl: 'dashboard/invoices.html',
|
||||
controller: 'DashboardController'
|
||||
}
|
||||
}
|
||||
@ -210,7 +210,7 @@ angular.module('application.router', ['ui.router'])
|
||||
abstract: !Fablab.walletModule,
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "dashboard/wallet.html" %>',
|
||||
templateUrl: 'dashboard/wallet.html',
|
||||
controller: 'WalletController'
|
||||
}
|
||||
},
|
||||
@ -225,7 +225,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/members/:id',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "members/show.html" %>',
|
||||
templateUrl: 'members/show.html',
|
||||
controller: 'ShowProfileController'
|
||||
}
|
||||
},
|
||||
@ -237,7 +237,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/members',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "members/index.html" %>',
|
||||
templateUrl: 'members/index.html',
|
||||
controller: 'MembersController'
|
||||
}
|
||||
},
|
||||
@ -251,7 +251,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/projects?q&page&theme_id&component_id&machine_id&from&whole_network',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "projects/index.html.erb" %>',
|
||||
templateUrl: 'projects/index.html.erb',
|
||||
controller: 'ProjectsController'
|
||||
}
|
||||
},
|
||||
@ -267,7 +267,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/projects/new',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "projects/new.html" %>',
|
||||
templateUrl: 'projects/new.html',
|
||||
controller: 'NewProjectController'
|
||||
}
|
||||
},
|
||||
@ -279,7 +279,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/projects/:id',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "projects/show.html" %>',
|
||||
templateUrl: 'projects/show.html',
|
||||
controller: 'ShowProjectController'
|
||||
}
|
||||
},
|
||||
@ -292,7 +292,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/projects/:id/edit',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "projects/edit.html" %>',
|
||||
templateUrl: 'projects/edit.html',
|
||||
controller: 'EditProjectController'
|
||||
}
|
||||
},
|
||||
@ -307,7 +307,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/machines',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "machines/index.html.erb" %>',
|
||||
templateUrl: 'machines/index.html.erb',
|
||||
controller: 'MachinesController'
|
||||
}
|
||||
},
|
||||
@ -320,7 +320,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/machines/new',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "machines/new.html" %>',
|
||||
templateUrl: 'machines/new.html',
|
||||
controller: 'NewMachineController'
|
||||
}
|
||||
}
|
||||
@ -329,7 +329,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/machines/:id',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "machines/show.html" %>',
|
||||
templateUrl: 'machines/show.html',
|
||||
controller: 'ShowMachineController'
|
||||
}
|
||||
},
|
||||
@ -341,7 +341,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/machines/:id/reserve',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "machines/reserve.html" %>',
|
||||
templateUrl: 'machines/reserve.html',
|
||||
controller: 'ReserveMachineController'
|
||||
}
|
||||
},
|
||||
@ -362,7 +362,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/machines/:id/edit',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "machines/edit.html" %>',
|
||||
templateUrl: 'machines/edit.html',
|
||||
controller: 'EditMachineController'
|
||||
}
|
||||
},
|
||||
@ -377,7 +377,7 @@ angular.module('application.router', ['ui.router'])
|
||||
abstract: !Fablab.spacesModule,
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "spaces/index.html" %>',
|
||||
templateUrl: 'spaces/index.html',
|
||||
controller: 'SpacesController'
|
||||
}
|
||||
},
|
||||
@ -391,7 +391,7 @@ angular.module('application.router', ['ui.router'])
|
||||
abstract: !Fablab.spacesModule,
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "spaces/new.html" %>',
|
||||
templateUrl: 'spaces/new.html',
|
||||
controller: 'NewSpaceController'
|
||||
}
|
||||
}
|
||||
@ -401,7 +401,7 @@ angular.module('application.router', ['ui.router'])
|
||||
abstract: !Fablab.spacesModule,
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "spaces/show.html" %>',
|
||||
templateUrl: 'spaces/show.html',
|
||||
controller: 'ShowSpaceController'
|
||||
}
|
||||
},
|
||||
@ -414,7 +414,7 @@ angular.module('application.router', ['ui.router'])
|
||||
abstract: !Fablab.spacesModule,
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "spaces/edit.html" %>',
|
||||
templateUrl: 'spaces/edit.html',
|
||||
controller: 'EditSpaceController'
|
||||
}
|
||||
},
|
||||
@ -427,7 +427,7 @@ angular.module('application.router', ['ui.router'])
|
||||
abstract: !Fablab.spacesModule,
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "spaces/reserve.html" %>',
|
||||
templateUrl: 'spaces/reserve.html',
|
||||
controller: 'ReserveSpaceController'
|
||||
}
|
||||
},
|
||||
@ -450,7 +450,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/trainings',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "trainings/index.html.erb" %>',
|
||||
templateUrl: 'trainings/index.html.erb',
|
||||
controller: 'TrainingsController'
|
||||
}
|
||||
},
|
||||
@ -462,7 +462,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/trainings/:id',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "trainings/show.html" %>',
|
||||
templateUrl: 'trainings/show.html',
|
||||
controller: 'ShowTrainingController'
|
||||
}
|
||||
},
|
||||
@ -474,7 +474,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/trainings/:id/reserve',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "trainings/reserve.html" %>',
|
||||
templateUrl: 'trainings/reserve.html',
|
||||
controller: 'ReserveTrainingController'
|
||||
}
|
||||
},
|
||||
@ -499,7 +499,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/notifications',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "notifications/index.html.erb" %>',
|
||||
templateUrl: 'notifications/index.html.erb',
|
||||
controller: 'NotificationsController'
|
||||
}
|
||||
}
|
||||
@ -511,7 +511,7 @@ angular.module('application.router', ['ui.router'])
|
||||
abstract: !Fablab.plansModule,
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "plans/index.html.erb" %>',
|
||||
templateUrl: 'plans/index.html.erb',
|
||||
controller: 'PlansIndexController'
|
||||
}
|
||||
},
|
||||
@ -528,7 +528,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/events',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "events/index.html.erb" %>',
|
||||
templateUrl: 'events/index.html.erb',
|
||||
controller: 'EventsController'
|
||||
}
|
||||
},
|
||||
@ -543,7 +543,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/events/:id',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "events/show.html" %>',
|
||||
templateUrl: 'events/show.html',
|
||||
controller: 'ShowEventController'
|
||||
}
|
||||
},
|
||||
@ -559,7 +559,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/calendar',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "calendar/calendar.html" %>',
|
||||
templateUrl: 'calendar/calendar.html',
|
||||
controller: 'CalendarController'
|
||||
}
|
||||
},
|
||||
@ -579,7 +579,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/admin/calendar',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "admin/calendar/calendar.html" %>',
|
||||
templateUrl: 'admin/calendar/calendar.html',
|
||||
controller: 'AdminCalendarController'
|
||||
}
|
||||
},
|
||||
@ -596,7 +596,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/admin/calendar/icalendar',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "admin/calendar/icalendar.html" %>',
|
||||
templateUrl: 'admin/calendar/icalendar.html',
|
||||
controller: 'AdminICalendarController'
|
||||
}
|
||||
},
|
||||
@ -610,7 +610,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/admin/projects',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "admin/projects/index.html.erb" %>',
|
||||
templateUrl: 'admin/projects/index.html.erb',
|
||||
controller: 'AdminProjectsController'
|
||||
}
|
||||
},
|
||||
@ -628,7 +628,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/admin/abuses',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "admin/abuses/index.html" %>',
|
||||
templateUrl: 'admin/abuses/index.html',
|
||||
controller: 'AbusesController'
|
||||
}
|
||||
},
|
||||
@ -642,7 +642,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/admin/trainings',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "admin/trainings/index.html.erb" %>',
|
||||
templateUrl: 'admin/trainings/index.html.erb',
|
||||
controller: 'TrainingsAdminController'
|
||||
}
|
||||
},
|
||||
@ -656,7 +656,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/admin/trainings/new',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "admin/trainings/new.html" %>',
|
||||
templateUrl: 'admin/trainings/new.html',
|
||||
controller: 'NewTrainingController'
|
||||
}
|
||||
},
|
||||
@ -668,7 +668,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/admin/trainings/:id/edit',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "admin/trainings/edit.html" %>',
|
||||
templateUrl: 'admin/trainings/edit.html',
|
||||
controller: 'EditTrainingController'
|
||||
}
|
||||
},
|
||||
@ -682,7 +682,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/admin/events',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "admin/events/index.html.erb" %>',
|
||||
templateUrl: 'admin/events/index.html.erb',
|
||||
controller: 'AdminEventsController'
|
||||
}
|
||||
},
|
||||
@ -699,7 +699,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/admin/events/new',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "events/new.html" %>',
|
||||
templateUrl: 'events/new.html',
|
||||
controller: 'NewEventController'
|
||||
}
|
||||
},
|
||||
@ -714,7 +714,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/admin/events/:id/edit',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "events/edit.html" %>',
|
||||
templateUrl: 'events/edit.html',
|
||||
controller: 'EditEventController'
|
||||
}
|
||||
},
|
||||
@ -730,7 +730,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/admin/events/:id/reservations',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "admin/events/reservations.html" %>',
|
||||
templateUrl: 'admin/events/reservations.html',
|
||||
controller: 'ShowEventReservationsController'
|
||||
}
|
||||
},
|
||||
@ -745,7 +745,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/admin/pricing',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "admin/pricing/index.html.erb" %>',
|
||||
templateUrl: 'admin/pricing/index.html.erb',
|
||||
controller: 'EditPricingController'
|
||||
}
|
||||
},
|
||||
@ -779,7 +779,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/admin/plans/new',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "admin/plans/new.html" %>',
|
||||
templateUrl: 'admin/plans/new.html',
|
||||
controller: 'NewPlanController'
|
||||
}
|
||||
}
|
||||
@ -788,7 +788,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/admin/plans/:id/edit',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "admin/plans/edit.html" %>',
|
||||
templateUrl: 'admin/plans/edit.html',
|
||||
controller: 'EditPlanController'
|
||||
}
|
||||
},
|
||||
@ -805,7 +805,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/admin/coupons/new',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "admin/coupons/new.html" %>',
|
||||
templateUrl: 'admin/coupons/new.html',
|
||||
controller: 'NewCouponController'
|
||||
}
|
||||
}
|
||||
@ -814,7 +814,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/admin/coupons/:id/edit',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "admin/coupons/edit.html" %>',
|
||||
templateUrl: 'admin/coupons/edit.html',
|
||||
controller: 'EditCouponController'
|
||||
}
|
||||
},
|
||||
@ -828,7 +828,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/admin/invoices',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "admin/invoices/index.html.erb" %>',
|
||||
templateUrl: 'admin/invoices/index.html.erb',
|
||||
controller: 'InvoicesController'
|
||||
}
|
||||
},
|
||||
@ -860,19 +860,19 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/admin/members',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "admin/members/index.html.erb" %>',
|
||||
templateUrl: 'admin/members/index.html.erb',
|
||||
controller: 'AdminMembersController'
|
||||
},
|
||||
'groups@app.admin.members': {
|
||||
templateUrl: '<%= asset_pack_path "admin/groups/index.html.erb" %>',
|
||||
templateUrl: 'admin/groups/index.html.erb',
|
||||
controller: 'GroupsController'
|
||||
},
|
||||
'tags@app.admin.members': {
|
||||
templateUrl: '<%= asset_pack_path "admin/tags/index.html.erb" %>',
|
||||
templateUrl: 'admin/tags/index.html.erb',
|
||||
controller: 'TagsController'
|
||||
},
|
||||
'authentification@app.admin.members': {
|
||||
templateUrl: '<%= asset_pack_path "admin/authentications/index.html.erb" %>',
|
||||
templateUrl: 'admin/authentications/index.html.erb',
|
||||
controller: 'AuthentificationController'
|
||||
}
|
||||
},
|
||||
@ -891,7 +891,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/admin/members/new',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "admin/members/new.html" %>',
|
||||
templateUrl: 'admin/members/new.html',
|
||||
controller: 'NewMemberController'
|
||||
}
|
||||
},
|
||||
@ -903,7 +903,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/admin/members/import',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "admin/members/import.html" %>',
|
||||
templateUrl: 'admin/members/import.html',
|
||||
controller: 'ImportMembersController'
|
||||
}
|
||||
},
|
||||
@ -915,7 +915,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/admin/members/import/:id/results',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "admin/members/import_result.html" %>',
|
||||
templateUrl: 'admin/members/import_result.html',
|
||||
controller: 'ImportMembersResultController'
|
||||
}
|
||||
},
|
||||
@ -927,7 +927,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/admin/members/:id/edit',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "admin/members/edit.html" %>',
|
||||
templateUrl: 'admin/members/edit.html',
|
||||
controller: 'EditMemberController'
|
||||
}
|
||||
},
|
||||
@ -944,7 +944,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/admin/admins/new',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "admin/admins/new.html" %>',
|
||||
templateUrl: 'admin/admins/new.html',
|
||||
controller: 'NewAdminController'
|
||||
}
|
||||
},
|
||||
@ -956,7 +956,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/admin/managers/new',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "admin/managers/new.html" %>',
|
||||
templateUrl: 'admin/managers/new.html',
|
||||
controller: 'NewManagerController'
|
||||
}
|
||||
},
|
||||
@ -971,7 +971,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/admin/authentications/new',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "admin/authentications/new.html" %>',
|
||||
templateUrl: 'admin/authentications/new.html',
|
||||
controller: 'NewAuthenticationController'
|
||||
}
|
||||
},
|
||||
@ -984,7 +984,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/admin/authentications/:id/edit',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "admin/authentications/edit.html" %>',
|
||||
templateUrl: 'admin/authentications/edit.html',
|
||||
controller: 'EditAuthenticationController'
|
||||
}
|
||||
},
|
||||
@ -1000,7 +1000,7 @@ angular.module('application.router', ['ui.router'])
|
||||
abstract: !Fablab.statisticsModule,
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "admin/statistics/index.html.erb" %>',
|
||||
templateUrl: 'admin/statistics/index.html.erb',
|
||||
controller: 'StatisticsController'
|
||||
}
|
||||
},
|
||||
@ -1015,7 +1015,7 @@ angular.module('application.router', ['ui.router'])
|
||||
abstract: !Fablab.statisticsModule,
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "admin/statistics/graphs.html" %>',
|
||||
templateUrl: 'admin/statistics/graphs.html',
|
||||
controller: 'GraphsController'
|
||||
}
|
||||
}
|
||||
@ -1026,7 +1026,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/admin/settings',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "admin/settings/index.html.erb" %>',
|
||||
templateUrl: 'admin/settings/index.html.erb',
|
||||
controller: 'SettingsController'
|
||||
}
|
||||
},
|
||||
@ -1058,7 +1058,7 @@ angular.module('application.router', ['ui.router'])
|
||||
url: '/open_api_clients',
|
||||
views: {
|
||||
'main@': {
|
||||
templateUrl: '<%= asset_pack_path "admin/open_api_clients/index.html.erb" %>',
|
||||
templateUrl: 'admin/open_api_clients/index.html.erb',
|
||||
controller: 'OpenAPIClientsController'
|
||||
}
|
||||
},
|
||||
|
@ -4,7 +4,7 @@ Application.Services.factory('dialogs', ['$uibModal', function ($uibModal) {
|
||||
return ({
|
||||
confirm (options, success, error) {
|
||||
const defaultOpts = {
|
||||
templateUrl: '<%= asset_pack_path "shared/confirm_modal.html" %>',
|
||||
templateUrl: 'shared/confirm_modal.html',
|
||||
size: 'sm',
|
||||
resolve: {
|
||||
object () {
|
||||
|
@ -34,7 +34,7 @@ Application.Services.factory('Help', ['$rootScope', '$uibModal', '$state', 'Auth
|
||||
|
||||
$uibModal.open({
|
||||
animation: true,
|
||||
templateUrl: '<%= asset_pack_path "shared/help_modal.html" %>',
|
||||
templateUrl: 'shared/help_modal.html',
|
||||
resolve: {
|
||||
tourName: function () { return tourName; }
|
||||
},
|
||||
|
@ -20,7 +20,7 @@
|
||||
<form role="form" name="adminForm" class="form-horizontal" novalidate>
|
||||
<section class="panel panel-default bg-light m-lg">
|
||||
<div class="panel-body m-r">
|
||||
<ng-include src="'<%= asset_pack_path "shared/_admin_form.html" %>'"></ng-include>
|
||||
<ng-include src="'shared/_admin_form.html'"></ng-include>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -90,4 +90,4 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ng-include src="'<%= asset_pack_path "admin/authentications/_oauth2_mapping.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/authentications/_oauth2_mapping.html'"></ng-include>
|
||||
|
@ -35,8 +35,8 @@
|
||||
|
||||
<section class="panel panel-default bg-light m-lg">
|
||||
<div class="panel-body m-r">
|
||||
<ng-include src="'<%= asset_pack_path "admin/authentications/_form.html" %>'"></ng-include>
|
||||
<ng-include src="'<%= asset_pack_path "admin/authentications/_oauth2.html"%>'" ng-if="provider.providable_type == 'OAuth2Provider'"></ng-include>
|
||||
<ng-include src="'admin/authentications/_form.html'"></ng-include>
|
||||
<ng-include src="'admin/authentications/_oauth2.html'" ng-if="provider.providable_type == 'OAuth2Provider'"></ng-include>
|
||||
</div> <!-- ./panel-body -->
|
||||
|
||||
|
||||
|
@ -36,8 +36,8 @@
|
||||
<section class="panel panel-default bg-light m-lg">
|
||||
<div class="panel-body m-r">
|
||||
|
||||
<ng-include src="'<%= asset_pack_path "admin/authentications/_form.html" %>'"></ng-include>
|
||||
<ng-include src="'<%= asset_pack_path "admin/authentications/_oauth2.html" %>'" ng-if="provider.providable_type == 'OAuth2Provider'"></ng-include>
|
||||
<ng-include src="'admin/authentications/_form.html'"></ng-include>
|
||||
<ng-include src="'admin/authentications/_oauth2.html'" ng-if="provider.providable_type == 'OAuth2Provider'"></ng-include>
|
||||
</div> <!-- ./panel-body -->
|
||||
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
<section class="row no-gutter admin-calendar"
|
||||
ui-tour="calendar"
|
||||
ui-tour-backdrop="true"
|
||||
ui-tour-template-url="'<%= asset_pack_path "shared/tour-step-template.html" %>'"
|
||||
ui-tour-template-url="'shared/tour-step-template.html'"
|
||||
ui-tour-use-hotkeys="true"
|
||||
ui-tour-scroll-parent-id="content-main"
|
||||
post-render="setupCalendarTour">
|
||||
|
@ -28,7 +28,7 @@
|
||||
<div id="couponForm">
|
||||
<form name="couponForm" novalidate="novalidate" class="col-lg-7 col-lg-offset-2 m-t-lg form-group">
|
||||
|
||||
<ng-include src="'<%= asset_pack_path "admin/coupons/_form.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/coupons/_form.html'"></ng-include>
|
||||
|
||||
<div class="panel-footer no-padder">
|
||||
<input type="button" value="{{ 'app.shared.buttons.confirm_changes' | translate }}" class="r-b btn-valid btn btn-warning btn-block p-lg btn-lg text-u-c" ng-disabled="couponForm.$invalid" ng-click="updateCoupon()"/>
|
||||
|
@ -20,7 +20,7 @@
|
||||
<div id="couponForm">
|
||||
<form name="couponForm" novalidate="novalidate" class="col-lg-10 col-lg-offset-2 m-t-lg form-group">
|
||||
|
||||
<ng-include src="'<%= asset_pack_path "admin/coupons/_form.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/coupons/_form.html'"></ng-include>
|
||||
|
||||
<div class="panel-footer no-padder">
|
||||
<input type="button" value="{{ 'app.shared.buttons.save' | translate }}" class="r-b btn-valid btn btn-warning btn-block p-lg btn-lg text-u-c" ng-disabled="couponForm.$invalid" ng-click="saveCoupon()"/>
|
||||
|
@ -21,7 +21,7 @@
|
||||
<section class="m-lg events-management"
|
||||
ui-tour="events"
|
||||
ui-tour-backdrop="true"
|
||||
ui-tour-template-url="'<%= asset_pack_path "shared/tour-step-template.html" %>'"
|
||||
ui-tour-template-url="'shared/tour-step-template.html'"
|
||||
ui-tour-use-hotkeys="true"
|
||||
ui-tour-scroll-parent-id="content-main"
|
||||
post-render="setupEventsTour">
|
||||
@ -29,20 +29,20 @@
|
||||
<div class="col-md-12" ng-if="isAuthorized('admin')">
|
||||
<uib-tabset justified="true" active="tabs.active">
|
||||
<uib-tab heading="{{ 'app.admin.events.events_monitoring' | translate }}" index="0">
|
||||
<ng-include src="'<%= asset_pack_path "admin/events/monitoring.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/events/monitoring.html'"></ng-include>
|
||||
</uib-tab>
|
||||
|
||||
<uib-tab heading="{{ 'app.admin.events.manage_filters' | translate }}" index="1">
|
||||
<ng-include src="'<%= asset_pack_path "admin/events/filters.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/events/filters.html'"></ng-include>
|
||||
</uib-tab>
|
||||
|
||||
<uib-tab heading="{{ 'app.admin.events.manage_prices_categories' | translate }}" index="2" class="prices-tab">
|
||||
<ng-include src="'<%= asset_pack_path "admin/events/prices.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/events/prices.html'"></ng-include>
|
||||
</uib-tab>
|
||||
</uib-tabset>
|
||||
</div>
|
||||
<div class="col-md-12" ng-if="isAuthorized('manager')">
|
||||
<ng-include src="'<%= asset_pack_path "admin/events/monitoring.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/events/monitoring.html'"></ng-include>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -65,7 +65,7 @@
|
||||
<td>{{period.start_at | amDateFormat:'L'}}</td>
|
||||
<td>{{period.end_at | amDateFormat:'L'}}</td>
|
||||
<td class="actions">
|
||||
<span class="show-more" uib-popover-template="'<%= asset_pack_path 'admin/invoices/_period.html' %>'"><i class="fa fa-info-circle"></i></span>
|
||||
<span class="show-more" uib-popover-template="'admin/invoices/_period.html'"><i class="fa fa-info-circle"></i></span>
|
||||
<span class="download-archive" ng-click="downloadArchive(period)" ng-show="period.archive_ready"><i class="fa fa-archive"></i></span>
|
||||
<span class="no-pointer" ng-hide="period.archive_ready"><i class="fa fa-spinner fa-pulse"></i></span>
|
||||
</td>
|
||||
|
@ -23,7 +23,7 @@
|
||||
<section class="m-lg invoices-management"
|
||||
ui-tour="invoices"
|
||||
ui-tour-backdrop="true"
|
||||
ui-tour-template-url="'<%= asset_pack_path "shared/tour-step-template.html" %>'"
|
||||
ui-tour-template-url="'shared/tour-step-template.html'"
|
||||
ui-tour-use-hotkeys="true"
|
||||
ui-tour-scroll-parent-id="content-main"
|
||||
post-render="setupInvoicesTour">
|
||||
@ -31,25 +31,25 @@
|
||||
<div class="col-md-12" ng-if="isAuthorized('admin')">
|
||||
<uib-tabset justified="true" active="tabs.active">
|
||||
<uib-tab heading="{{ 'app.admin.invoices.invoices_list' | translate }}" ng-show="modules.invoicing" index="0">
|
||||
<ng-include src="'<%= asset_pack_path "admin/invoices/list.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/invoices/list.html'"></ng-include>
|
||||
</uib-tab>
|
||||
|
||||
<uib-tab heading="{{ 'app.admin.invoices.invoicing_settings' | translate }}" index="1" class="invoices-settings">
|
||||
<ng-include src="'<%= asset_pack_path "admin/invoices/settings.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/invoices/settings.html'"></ng-include>
|
||||
</uib-tab>
|
||||
|
||||
<uib-tab heading="{{ 'app.admin.invoices.accounting_codes' | translate }}" index="2" class="accounting-codes-tab">
|
||||
<ng-include src="'<%= asset_pack_path "admin/invoices/codes.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/invoices/codes.html'"></ng-include>
|
||||
</uib-tab>
|
||||
|
||||
<uib-tab heading="{{ 'app.admin.invoices.payment.payment_settings' | translate }}" index="3" class="payment-settings">
|
||||
<ng-include src="'<%= asset_pack_path "admin/invoices/payment.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/invoices/payment.html'"></ng-include>
|
||||
</uib-tab>
|
||||
</uib-tabset>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12" ng-if="isAuthorized('manager')">
|
||||
<ng-include src="'<%= asset_pack_path "admin/invoices/list.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/invoices/list.html'"></ng-include>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -20,7 +20,7 @@
|
||||
<form role="form" name="managerForm" class="form-horizontal" novalidate>
|
||||
<section class="panel panel-default bg-light m-lg">
|
||||
<div class="panel-body m-r">
|
||||
<ng-include src="'<%= asset_pack_path "shared/_manager_form.html" %>'"></ng-include>
|
||||
<ng-include src="'shared/_manager_form.html'"></ng-include>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -46,9 +46,9 @@
|
||||
|
||||
<section class="panel panel-default bg-light m-lg">
|
||||
<div class="panel-body m-r">
|
||||
<ng-include src="'<%= asset_pack_path "shared/_member_form.html" %>'"></ng-include>
|
||||
<ng-include src="'shared/_member_form.html'"></ng-include>
|
||||
|
||||
<ng-include src="'<%= asset_pack_path "admin/members/_form.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/members/_form.html'"></ng-include>
|
||||
|
||||
</div> <!-- ./panel-body -->
|
||||
|
||||
@ -231,7 +231,7 @@
|
||||
|
||||
<uib-tab heading="{{ 'app.admin.members_edit.wallet' | translate }}" ng-show="modules.wallet">
|
||||
<div class="col-md-12 m m-t-lg">
|
||||
<ng-include src="'<%= asset_pack_path "wallet/show.html" %>'"></ng-include>
|
||||
<ng-include src="'wallet/show.html'"></ng-include>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
<div class="col-sm-4 text-center" ng-hide="user.id === currentUser.id">
|
||||
@ -244,7 +244,7 @@
|
||||
</div>
|
||||
|
||||
<div class="col-md-12 m m-t-lg">
|
||||
<ng-include src="'<%= asset_pack_path "wallet/transactions.html" %>'"></ng-include>
|
||||
<ng-include src="'wallet/transactions.html'"></ng-include>
|
||||
</div>
|
||||
</uib-tab>
|
||||
</uib-tabset>
|
||||
|
@ -24,7 +24,7 @@
|
||||
<section class="m-lg members-management"
|
||||
ui-tour="members"
|
||||
ui-tour-backdrop="true"
|
||||
ui-tour-template-url="'<%= asset_pack_path "shared/tour-step-template.html" %>'"
|
||||
ui-tour-template-url="'shared/tour-step-template.html'"
|
||||
ui-tour-use-hotkeys="true"
|
||||
ui-tour-scroll-parent-id="content-main"
|
||||
post-render="setupMembersTour">
|
||||
@ -33,7 +33,7 @@
|
||||
<uib-tabset justified="true" active="tabs.active" ng-if="isAuthorized('admin')">
|
||||
|
||||
<uib-tab heading="{{ 'app.admin.members.users' | translate }}" index="0">
|
||||
<ng-include src="'<%= asset_pack_path "admin/members/users.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/members/users.html'"></ng-include>
|
||||
</uib-tab>
|
||||
|
||||
<uib-tab heading="{{ 'app.admin.members.groups' | translate }}" class="groups-tab" index="1">
|
||||
@ -50,7 +50,7 @@
|
||||
</uib-tabset>
|
||||
|
||||
<div ng-if="isAuthorized('manager')">
|
||||
<ng-include src="'<%= asset_pack_path "admin/members/users.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/members/users.html'"></ng-include>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -50,9 +50,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ng-include src="'<%= asset_pack_path "shared/_member_form.html" %>'"></ng-include>
|
||||
<ng-include src="'shared/_member_form.html'"></ng-include>
|
||||
|
||||
<ng-include src="'<%= asset_pack_path "admin/members/_form.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/members/_form.html'"></ng-include>
|
||||
</div> <!-- ./panel-body -->
|
||||
|
||||
|
||||
|
@ -1,19 +1,19 @@
|
||||
<uib-tabset justified="true" active="tabs.sub" class="m-t">
|
||||
|
||||
<uib-tab classes="{{isAuthorized('admin') ? 'level-2-tab' : ''}}" heading="{{ 'app.admin.members.members' | translate }}" index="0">
|
||||
<ng-include src="'<%= asset_pack_path "admin/members/members.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/members/members.html'"></ng-include>
|
||||
</uib-tab>
|
||||
|
||||
<uib-tab classes="{{isAuthorized('admin') ? 'level-2-tab' : ''}}" heading="{{ 'app.admin.members.administrators' | translate }}" class="admins-tab" index="1">
|
||||
<ng-include src="'<%= asset_pack_path "admin/members/administrators.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/members/administrators.html'"></ng-include>
|
||||
</uib-tab>
|
||||
|
||||
<uib-tab classes="{{isAuthorized('admin') ? 'level-2-tab' : ''}}" heading="{{ 'app.admin.members.managers' | translate }}" class="admins-tab" index="2">
|
||||
<ng-include src="'<%= asset_pack_path "admin/members/managers.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/members/managers.html'"></ng-include>
|
||||
</uib-tab>
|
||||
|
||||
<uib-tab classes="{{isAuthorized('admin') ? 'level-2-tab' : ''}}" heading="{{ 'app.admin.members.partners' | translate }}" class="admins-tab" index="3" ng-show="isAuthorized('admin')">
|
||||
<ng-include src="'<%= asset_pack_path "admin/members/partners.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/members/partners.html'"></ng-include>
|
||||
</uib-tab>
|
||||
|
||||
</uib-tabset>
|
||||
|
@ -26,7 +26,7 @@
|
||||
<section class="m-lg open-api-clients"
|
||||
ui-tour="open-api"
|
||||
ui-tour-backdrop="true"
|
||||
ui-tour-template-url="'<%= asset_pack_path "shared/tour-step-template.html" %>'"
|
||||
ui-tour-template-url="'shared/tour-step-template.html'"
|
||||
ui-tour-use-hotkeys="true"
|
||||
ui-tour-scroll-parent-id="content-main"
|
||||
post-render="setupOpenAPITour">
|
||||
|
@ -26,7 +26,7 @@
|
||||
<div id="planForm">
|
||||
<form name="planForm" novalidate="novalidate" class="col-lg-7 col-lg-offset-2 m-t-lg form-group" action="{{ actionUrl }}" ng-upload="afterSubmit(content)" upload-options-enable-rails-csrf="true">
|
||||
|
||||
<ng-include src="'<%= asset_pack_path "admin/plans/_form.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/plans/_form.html'"></ng-include>
|
||||
|
||||
<div class="input-group m-t-md">
|
||||
<label for="plan[disabled]" class="control-label m-r-md">{{ 'app.shared.plan.disabled' | translate }}</label>
|
||||
|
@ -20,7 +20,7 @@
|
||||
<div id="planForm">
|
||||
<form name="planForm" novalidate="novalidate" class="col-lg-10 col-lg-offset-2 m-t-lg form-group" action="{{ actionUrl }}" ng-upload="afterSubmit(content)" upload-options-enable-rails-csrf="true">
|
||||
|
||||
<ng-include src="'<%= asset_pack_path "admin/plans/_form.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/plans/_form.html'"></ng-include>
|
||||
|
||||
<div class="panel-footer no-padder">
|
||||
<input type="submit" value="{{ 'app.shared.buttons.save' | translate }}" class="r-b btn-valid btn btn-warning btn-block p-lg btn-lg text-u-c" ng-disabled="planForm.$invalid || !partnerIsValid()"/>
|
||||
|
@ -18,7 +18,7 @@
|
||||
<section class="m-lg plans-pricing"
|
||||
ui-tour="pricing"
|
||||
ui-tour-backdrop="true"
|
||||
ui-tour-template-url="'<%= asset_pack_path "shared/tour-step-template.html" %>'"
|
||||
ui-tour-template-url="'shared/tour-step-template.html'"
|
||||
ui-tour-use-hotkeys="true"
|
||||
ui-tour-scroll-parent-id="content-main"
|
||||
post-render="setupPricingTour">
|
||||
@ -28,27 +28,27 @@
|
||||
<uib-tabset justified="true" active="tabs.active">
|
||||
|
||||
<uib-tab heading="{{ 'app.admin.pricing.subscriptions' | translate }}" index="0">
|
||||
<ng-include src="'<%= asset_pack_path "admin/pricing/subscriptions.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/pricing/subscriptions.html'"></ng-include>
|
||||
</uib-tab>
|
||||
|
||||
<uib-tab heading="{{ 'app.admin.pricing.trainings' | translate }}" index="1" class="trainings-tab">
|
||||
<ng-include src="'<%= asset_pack_path "admin/pricing/trainings.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/pricing/trainings.html'"></ng-include>
|
||||
</uib-tab>
|
||||
|
||||
<uib-tab heading="{{ 'app.admin.pricing.machine_hours' | translate }}" index="2" class="machines-tab">
|
||||
<ng-include src="'<%= asset_pack_path "admin/pricing/machine_hours.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/pricing/machine_hours.html'"></ng-include>
|
||||
</uib-tab>
|
||||
|
||||
<uib-tab heading="{{ 'app.admin.pricing.spaces' | translate }}" ng-show="modules.spaces" index="3" class="spaces-tab">
|
||||
<ng-include src="'<%= asset_pack_path "admin/pricing/spaces.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/pricing/spaces.html'"></ng-include>
|
||||
</uib-tab>
|
||||
|
||||
<uib-tab heading="{{ 'app.admin.pricing.credits' | translate }}" index="4" class="credits-tab">
|
||||
<ng-include src="'<%= asset_pack_path "admin/pricing/credits.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/pricing/credits.html'"></ng-include>
|
||||
</uib-tab>
|
||||
|
||||
<uib-tab heading="{{ 'app.admin.pricing.coupons' | translate }}" index="5" class="coupons-tab">
|
||||
<ng-include src="'<%= asset_pack_path "admin/pricing/coupons.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/pricing/coupons.html'"></ng-include>
|
||||
</uib-tab>
|
||||
</uib-tabset>
|
||||
</div>
|
||||
|
@ -22,7 +22,7 @@
|
||||
<section class="m-lg projects"
|
||||
ui-tour="projects"
|
||||
ui-tour-backdrop="true"
|
||||
ui-tour-template-url="'<%= asset_pack_path "shared/tour-step-template.html" %>'"
|
||||
ui-tour-template-url="'shared/tour-step-template.html'"
|
||||
ui-tour-use-hotkeys="true"
|
||||
ui-tour-scroll-parent-id="content-main"
|
||||
post-render="setupProjectElementsTour">
|
||||
@ -31,16 +31,16 @@
|
||||
<div class="col-md-12">
|
||||
<uib-tabset justified="true" active="tabs.active">
|
||||
<uib-tab heading="{{ 'app.admin.projects.materials' | translate }}" index="0">
|
||||
<ng-include src="'<%= asset_pack_path "admin/projects/materials.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/projects/materials.html'"></ng-include>
|
||||
</uib-tab>
|
||||
<uib-tab heading="{{ 'app.admin.projects.themes' | translate }}" index="1">
|
||||
<ng-include src="'<%= asset_pack_path "admin/projects/themes.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/projects/themes.html'"></ng-include>
|
||||
</uib-tab>
|
||||
<uib-tab heading="{{ 'app.admin.projects.licences' | translate }}" index="2">
|
||||
<ng-include src="'<%= asset_pack_path "admin/projects/licences.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/projects/licences.html'"></ng-include>
|
||||
</uib-tab>
|
||||
<uib-tab heading="{{ 'app.admin.projects.settings.title' | translate }}" index="3" class="settings-tab">
|
||||
<ng-include src="'<%= asset_pack_path "admin/projects/settings.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/projects/settings.html'"></ng-include>
|
||||
</uib-tab>
|
||||
</uib-tabset>
|
||||
</div>
|
||||
|
@ -17,7 +17,7 @@
|
||||
<section class="m-lg admin-settings"
|
||||
ui-tour="settings"
|
||||
ui-tour-backdrop="true"
|
||||
ui-tour-template-url="'<%= asset_pack_path "shared/tour-step-template.html" %>'"
|
||||
ui-tour-template-url="'shared/tour-step-template.html'"
|
||||
ui-tour-use-hotkeys="true"
|
||||
ui-tour-scroll-parent-id="content-main"
|
||||
post-render="setupSettingsTour">
|
||||
@ -27,23 +27,23 @@
|
||||
<uib-tabset justified="true" active="tabs.active">
|
||||
|
||||
<uib-tab heading="{{ 'app.admin.settings.general.general' | translate }}" index="0" class="general-page-tab">
|
||||
<ng-include src="'<%= asset_pack_path "admin/settings/general.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/settings/general.html'"></ng-include>
|
||||
</uib-tab>
|
||||
|
||||
<uib-tab heading="{{ 'app.admin.settings.home_page' | translate }}" index="1">
|
||||
<ng-include src="'<%= asset_pack_path "admin/settings/home_page.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/settings/home_page.html'"></ng-include>
|
||||
</uib-tab>
|
||||
|
||||
<uib-tab heading="{{ 'app.admin.settings.about' | translate }}" index="2" class="about-page-tab">
|
||||
<ng-include src="'<%= asset_pack_path "admin/settings/about.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/settings/about.html'"></ng-include>
|
||||
</uib-tab>
|
||||
|
||||
<uib-tab heading="{{ 'app.admin.settings.privacy.title' | translate }}" index="3" class="privacy-page-tab">
|
||||
<ng-include src="'<%= asset_pack_path "admin/settings/privacy.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/settings/privacy.html'"></ng-include>
|
||||
</uib-tab>
|
||||
|
||||
<uib-tab heading="{{ 'app.admin.settings.reservations' | translate }}" index="4" class="reservations-page-tab">
|
||||
<ng-include src="'<%= asset_pack_path "admin/settings/reservations.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/settings/reservations.html'"></ng-include>
|
||||
</uib-tab>
|
||||
</uib-tabset>
|
||||
</div>
|
||||
|
@ -24,7 +24,7 @@
|
||||
<section class="m-lg statistics"
|
||||
ui-tour="statistics"
|
||||
ui-tour-backdrop="true"
|
||||
ui-tour-template-url="'<%= asset_pack_path "shared/tour-step-template.html" %>'"
|
||||
ui-tour-template-url="'shared/tour-step-template.html'"
|
||||
ui-tour-use-hotkeys="true"
|
||||
ui-tour-scroll-parent-id="content-main"
|
||||
post-render="setupStatisticsTour">
|
||||
|
@ -22,6 +22,6 @@
|
||||
|
||||
<div class="row no-gutter">
|
||||
<div class="col-sm-12 col-md-12 col-lg-9 b-r-lg nopadding">
|
||||
<ng-include src="'<%= asset_pack_path "admin/trainings/_form.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/trainings/_form.html'"></ng-include>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -25,7 +25,7 @@
|
||||
<section class="m-lg trainings-monitoring"
|
||||
ui-tour="trainings"
|
||||
ui-tour-backdrop="true"
|
||||
ui-tour-template-url="'<%= asset_pack_path "shared/tour-step-template.html" %>'"
|
||||
ui-tour-template-url="'shared/tour-step-template.html'"
|
||||
ui-tour-use-hotkeys="true"
|
||||
ui-tour-scroll-parent-id="content-main"
|
||||
post-render="setupTrainingsTour">
|
||||
|
@ -26,7 +26,7 @@
|
||||
{{ 'app.admin.trainings_new.dont_forget_to_change_them_before_creating_slots_for_this_training' | translate }}
|
||||
</div>
|
||||
|
||||
<ng-include src="'<%= asset_pack_path "admin/trainings/_form.html" %>'"></ng-include>
|
||||
<ng-include src="'admin/trainings/_form.html'"></ng-include>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
|
@ -41,7 +41,7 @@
|
||||
<h3 translate>{{ 'app.public.calendar.filter_calendar' }}</h3>
|
||||
</div>
|
||||
<div class="widget-content no-bg auto wrapper calendar-filter">
|
||||
<ng-include src="'<%= asset_pack_path "calendar/filter.html" %>'"></ng-include>
|
||||
<ng-include src="'calendar/filter.html'"></ng-include>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -56,7 +56,7 @@
|
||||
<h1 class="modal-title" translate>{{ 'app.public.calendar.filter_calendar' }}</h1>
|
||||
</div>
|
||||
<div class="modal-body widget-content calendar-filter calendar-filter-aside">
|
||||
<ng-include src="'<%= asset_pack_path "calendar/filter.html" %>'"></ng-include>
|
||||
<ng-include src="'calendar/filter.html'"></ng-include>
|
||||
</div>
|
||||
</div>
|
||||
</script>
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
<section class="heading">
|
||||
<div class="row no-gutter">
|
||||
<ng-include src="'<%= asset_pack_path "dashboard/nav.html" %>'"></ng-include>
|
||||
<ng-include src="'dashboard/nav.html'"></ng-include>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
<section class="heading">
|
||||
<div class="row no-gutter">
|
||||
<ng-include src="'<%= asset_pack_path "dashboard/nav.html" %>'"></ng-include>
|
||||
<ng-include src="'dashboard/nav.html'"></ng-include>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
<section class="heading">
|
||||
<div class="row no-gutter">
|
||||
<ng-include src="'<%= asset_pack_path "dashboard/nav.html" %>'"></ng-include>
|
||||
<ng-include src="'dashboard/nav.html'"></ng-include>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
@ -10,7 +10,7 @@
|
||||
|
||||
<div class="row no-gutter">
|
||||
<div class="col-md-12 m m-t-lg">
|
||||
<ng-include src="'<%= asset_pack_path "shared/publicProfile.html" %>'"></ng-include>
|
||||
<ng-include src="'shared/publicProfile.html'"></ng-include>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
<section class="heading">
|
||||
<div class="row no-gutter">
|
||||
<ng-include src="'<%= asset_pack_path "dashboard/nav.html" %>'"></ng-include>
|
||||
<ng-include src="'dashboard/nav.html'"></ng-include>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<div>
|
||||
|
||||
<ng-include src="'<%= asset_pack_path "dashboard/nav.html" %>'"></ng-include>
|
||||
<ng-include src="'dashboard/nav.html'"></ng-include>
|
||||
|
||||
|
||||
|
||||
@ -121,7 +121,7 @@
|
||||
</section>
|
||||
<section class="panel panel-default bg-light m">
|
||||
<div class="panel-body m-r">
|
||||
<ng-include src="'<%= asset_pack_path "shared/_member_form.html" %>'"></ng-include>
|
||||
<ng-include src="'shared/_member_form.html'"></ng-include>
|
||||
</div> <!-- ./panel-body -->
|
||||
</section>
|
||||
</div>
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
<section class="heading">
|
||||
<div class="row no-gutter">
|
||||
<ng-include src="'<%= asset_pack_path "dashboard/nav.html" %>'"></ng-include>
|
||||
<ng-include src="'dashboard/nav.html'"></ng-include>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
@ -1,18 +1,18 @@
|
||||
<div>
|
||||
<section class="heading">
|
||||
<div class="row no-gutter">
|
||||
<ng-include src="'<%= asset_pack_path "dashboard/nav.html" %>'"></ng-include>
|
||||
<ng-include src="'dashboard/nav.html'"></ng-include>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
<div class="row no-gutter">
|
||||
<div class="col-md-12 m m-t-lg">
|
||||
<ng-include src="'<%= asset_pack_path "wallet/show.html" %>'"></ng-include>
|
||||
<ng-include src="'wallet/show.html'"></ng-include>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12 m m-t-lg">
|
||||
<ng-include src="'<%= asset_pack_path "wallet/transactions.html" %>'"></ng-include>
|
||||
<ng-include src="'wallet/transactions.html'"></ng-include>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
<form role="form" name="eventForm" class="form-horizontal" novalidate action="{{ actionUrl }}" ng-upload="submited(content)" upload-options-enable-rails-csrf="true" upload-options-convert-hidden="true">
|
||||
|
||||
<ng-include src="'<%= asset_pack_path "events/_form.html" %>'"></ng-include>
|
||||
<ng-include src="'events/_form.html'"></ng-include>
|
||||
|
||||
</form>
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
<form role="form" name="eventForm" class="form-horizontal" novalidate action="{{ actionUrl }}" ng-upload="submited(content)" upload-options-enable-rails-csrf="true">
|
||||
|
||||
<ng-include src="'<%= asset_pack_path "events/_form.html" %>'"></ng-include>
|
||||
<ng-include src="'events/_form.html'"></ng-include>
|
||||
|
||||
</form>
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<div ui-tour="welcome"
|
||||
ui-tour-backdrop="true"
|
||||
ui-tour-template-url="'<%= asset_pack_path "shared/tour-step-template.html" %>'"
|
||||
ui-tour-template-url="'shared/tour-step-template.html'"
|
||||
ui-tour-use-hotkeys="true"
|
||||
ui-tour-scroll-parent-id="content-main"
|
||||
post-render="setupHomeTour">
|
@ -24,7 +24,7 @@
|
||||
|
||||
<div class="row no-gutter">
|
||||
<div class="col-sm-12 col-md-12 col-lg-9 b-r-lg nopadding">
|
||||
<ng-include src="'<%= asset_pack_path "machines/_form.html" %>'"></ng-include>
|
||||
<ng-include src="'machines/_form.html'"></ng-include>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -23,7 +23,7 @@
|
||||
<section class="m-lg machines-list"
|
||||
ui-tour="machines"
|
||||
ui-tour-backdrop="true"
|
||||
ui-tour-template-url="'<%= asset_pack_path "shared/tour-step-template.html" %>'"
|
||||
ui-tour-template-url="'shared/tour-step-template.html'"
|
||||
ui-tour-use-hotkeys="true"
|
||||
ui-tour-scroll-parent-id="content-main"
|
||||
post-render="setupMachinesTour">
|
||||
|
@ -26,6 +26,6 @@
|
||||
{{ 'app.admin.machines_new.consider_changing_them_before_creating_any_reservation_slot' | translate }}
|
||||
</div>
|
||||
|
||||
<ng-include src="'<%= asset_pack_path "machines/_form.html" %>'"></ng-include>
|
||||
<ng-include src="'machines/_form.html'"></ng-include>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -19,7 +19,7 @@
|
||||
<div class="row no-gutter machine-reserve">
|
||||
<div class="col-sm-12 col-md-12 col-lg-9">
|
||||
<div ui-calendar="calendarConfig" ng-model="eventSources" calendar="calendar" class="wrapper-lg" ng-show="!plansAreShown"></div>
|
||||
<ng-include ng-if="modules.plans" src="'<%= asset_pack_path "plans/_plan.html" %>'"></ng-include>
|
||||
<ng-include ng-if="modules.plans" src="'plans/_plan.html'"></ng-include>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -21,5 +21,5 @@
|
||||
|
||||
</div>
|
||||
</section>
|
||||
<ng-include src="'<%= asset_pack_path "shared/publicProfile.html" %>'"></ng-include>
|
||||
<ng-include src="'shared/publicProfile.html'"></ng-include>
|
||||
</div>
|
||||
|
@ -4,7 +4,7 @@
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<uib-alert ng-repeat="alert in alerts" type="{{alert.type}}" close="closeAlert($index)">{{alert.msg}}</uib-alert>
|
||||
<ng-include src="'<%= asset_pack_path "shared/_wallet_amount_info.html" %>'"></ng-include>
|
||||
<ng-include src="'shared/_wallet_amount_info.html'"></ng-include>
|
||||
|
||||
<p>{{ 'app.public.plans.here_is_the_NAME_subscription_summary' | translate:{NAME:member.name} }}</p>
|
||||
<p>{{ plan | humanReadablePlanName }}</p>
|
||||
|
@ -36,9 +36,9 @@
|
||||
</div>
|
||||
<div class="row col-md-2 col-md-offset-5 hidden-sm hidden-xs" ng-hide="user.merged_at">
|
||||
<p class="font-felt fleche-left text-lg upper text-center">
|
||||
<%= image_pack_tag("arrow-left.png", class: 'fleche-left visible-lg visible-md fleche-left-from-top') %>
|
||||
<img src="arrow-left.png" class="fleche-left visible-lg visible-md fleche-left-from-top" />
|
||||
<span class="or" translate>{{ 'app.logged.profile_completion.or' }}</span>
|
||||
<%= image_pack_tag("arrow-left.png", class: 'fleche-right visible-lg visible-md fleche-right-from-top') %>
|
||||
<img src="arrow-left.png" class="fleche-right visible-lg visible-md fleche-right-from-top" />
|
||||
</p>
|
||||
</div>
|
||||
<div class="row">
|
||||
@ -63,7 +63,7 @@
|
||||
|
||||
<div class="panel-body m-r">
|
||||
<!-- common fields -->
|
||||
<ng-include src="'<%= asset_pack_path "shared/_member_form.html" %>'"></ng-include>
|
||||
<ng-include src="'shared/_member_form.html'"></ng-include>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-3 col-sm-offset-1"></div>
|
||||
@ -151,7 +151,7 @@
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-md-6 m-t-3xl-on-md" ng-hide="user.merged_at">
|
||||
<ng-include src="'<%= asset_pack_path "profile/_token.html" %>'"></ng-include>
|
||||
<ng-include src="'profile/_token.html'"></ng-include>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -29,7 +29,7 @@
|
||||
|
||||
|
||||
|
||||
<ng-include src="'<%= asset_pack_path "projects/_form.html" %>'"></ng-include>
|
||||
<ng-include src="'projects/_form.html'"></ng-include>
|
||||
</form>
|
||||
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
<form role="form" name="projectForm" class="form-horizontal" novalidate action="{{ actionUrl }}" ng-upload="submited(content)" upload-options-enable-rails-csrf="true" unsaved-warning-form>
|
||||
|
||||
<ng-include src="'<%= asset_pack_path "projects/_form.html" %>'"></ng-include>
|
||||
<ng-include src="'projects/_form.html'"></ng-include>
|
||||
|
||||
</form>
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
</div>
|
||||
|
||||
<div class="widget-content no-bg auto wrapper" ng-show="events.reserved.length == 0 && (!events.paid || events.paid.length == 0)">
|
||||
<p class="font-felt fleche-left text-lg"><%= image_pack_tag('arrow-left.png', class: 'fleche-left visible-lg') %>
|
||||
<p class="font-felt fleche-left text-lg"><img src="arrow-left.png" class="fleche-left visible-lg" />
|
||||
{{ 'app.shared.cart.select_one_or_more_slots_in_the_calendar' | translate:{SINGLE:limitToOneSlot} }}</p>
|
||||
</div>
|
||||
|
||||
@ -117,7 +117,7 @@
|
||||
</div>
|
||||
|
||||
<div class="widget-content no-bg">
|
||||
<p class="font-felt fleche-left text-lg"><%= image_pack_tag('arrow-left.png', class: 'fleche-left visible-lg') %>
|
||||
<p class="font-felt fleche-left text-lg"><img src="arrow-left.png" class="fleche-left visible-lg" />
|
||||
{{ 'app.shared.cart.select_a_new_slot_in_the_calendar' | translate }}</p>
|
||||
</div>
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<div class="form-group m-t-lg">
|
||||
<div class="fileinput text-center" data-provides="fileinput" ng-class="fileinputClass(user.profile.user_avatar.attachment_url)">
|
||||
<div class="fileinput-new thumbnail rounded thumb-128-wrapper" style="width: 140px; height: 140px;">
|
||||
<img src="<%= image_pack_path("no_avatar.png") %>" class="img-circle">
|
||||
<img src="no_avatar.png" class="img-circle">
|
||||
</div>
|
||||
<div class="fileinput-preview fileinput-exists thumbnail rounded thumb-128-wrapper" data-trigger="fileinput" style="width: 140px; height: 140px; line-height: 140px;">
|
||||
<img ng-src="{{ user.profile.user_avatar.attachment_url }}" />
|
||||
@ -453,7 +453,7 @@
|
||||
|
||||
<div class="form-group" ng-show="social.dailymotion || user.profile.dailymotion" ng-class="{'has-error': userForm['user[profile_attributes][dailymotion]'].$dirty && userForm['user[profile_attributes][dailymotion]'].$invalid}">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon help-cursor" title="{{ 'app.shared.user.used_for_profile' | translate }}"><img src="<%= asset_pack_path('social/dailymotion.png') %>" alt="d" class="fa-img"/></span>
|
||||
<span class="input-group-addon help-cursor" title="{{ 'app.shared.user.used_for_profile' | translate }}"><img src="social/dailymotion.png" alt="d" class="fa-img"/></span>
|
||||
<input type="text"
|
||||
name="user[profile_attributes][dailymotion]"
|
||||
ng-model="user.profile.dailymotion"
|
||||
@ -484,7 +484,7 @@
|
||||
|
||||
<div class="form-group" ng-show="social.echosciences || user.profile.echosciences" ng-class="{'has-error': userForm['user[profile_attributes][echosciences]'].$dirty && userForm['user[profile_attributes][echosciences]'].$invalid}">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon help-cursor" title="{{ 'app.shared.user.used_for_profile' | translate }}"><img src="<%= asset_pack_path('social/echosciences.png') %>" alt="d" class="fa-img"/></span>
|
||||
<span class="input-group-addon help-cursor" title="{{ 'app.shared.user.used_for_profile' | translate }}"><img src="social/echosciences.png" alt="d" class="fa-img"/></span>
|
||||
<input type="text"
|
||||
name="user[profile_attributes][echosciences]"
|
||||
ng-model="user.profile.echosciences"
|
||||
@ -551,9 +551,9 @@
|
||||
<div ng-click="social.instagram = !social.instagram" ng-hide="social.instagram || user.profile.instagram"><i class="fa fa-instagram fa-2x"></i></div>
|
||||
<div ng-click="social.youtube = !social.youtube" ng-hide="social.youtube || user.profile.youtube"><i class="fa fa-youtube fa-2x"></i></div>
|
||||
<div ng-click="social.vimeo = !social.vimeo" ng-hide="social.vimeo || user.profile.vimeo"><i class="fa fa-vimeo fa-2x"></i></div>
|
||||
<div ng-click="social.dailymotion = !social.dailymotion" ng-hide="social.dailymotion || user.profile.dailymotion"><img src="<%= asset_pack_path('social/dailymotion.png') %>" alt="d" class="fa-img contrast-250 fa-2x"/></div>
|
||||
<div ng-click="social.dailymotion = !social.dailymotion" ng-hide="social.dailymotion || user.profile.dailymotion"><img src="social/dailymotion.png" alt="d" class="fa-img contrast-250 fa-2x"/></div>
|
||||
<div ng-click="social.github = !social.github" ng-hide="social.github || user.profile.github"><i class="fa fa-github fa-2x"></i></div>
|
||||
<div ng-click="social.echosciences = !social.echosciences" ng-hide="social.echosciences || user.profile.echosciences"><img src="<%= asset_pack_path('social/echosciences.png') %>" alt="E" class="fa-img contrast-250 fa-2x"/></div>
|
||||
<div ng-click="social.echosciences = !social.echosciences" ng-hide="social.echosciences || user.profile.echosciences"><img src="social/echosciences.png" alt="E" class="fa-img contrast-250 fa-2x"/></div>
|
||||
<div ng-click="social.pinterest = !social.pinterest" ng-hide="social.pinterest || user.profile.pinterest"><i class="fa fa-pinterest fa-2x"></i></div>
|
||||
<div ng-click="social.lastfm = !social.lastfm" ng-hide="social.lastfm || user.profile.lastfm"><i class="fa fa-lastfm fa-2x"></i></div>
|
||||
<div ng-click="social.flickr = !social.flickr" ng-hide="social.flickr || user.profile.flickr"><i class="fa fa-flickr fa-2x"></i></div>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<img ng-src="<%= image_pack_path("no_avatar.png") %>" class="img-circle" ng-class="avatarClass"
|
||||
<img ng-src="no_avatar.png" class="img-circle" ng-class="avatarClass"
|
||||
ng-if="!userAvatar || !userAvatar.attachment_url">
|
||||
<img ng-src="{{userAvatar.attachment_url}}" class="img-circle" ng-class="avatarClass"
|
||||
ng-if="userAvatar.attachment_url">
|
||||
|
@ -4,7 +4,7 @@
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<uib-alert ng-repeat="alert in alerts" type="{{alert.type}}" close="closeAlert($index)">{{alert.msg}}</uib-alert>
|
||||
<ng-include src="'<%= asset_pack_path "shared/_wallet_amount_info.html" %>'"></ng-include>
|
||||
<ng-include src="'shared/_wallet_amount_info.html'"></ng-include>
|
||||
|
||||
<p translate>{{ 'app.shared.valid_reservation_modal.here_is_the_summary_of_the_slots_to_book_for_the_current_user' }}</p>
|
||||
<ul ng-repeat="slot in reservation.slots_attributes">
|
||||
|
@ -33,7 +33,7 @@
|
||||
|
||||
<section class="panel panel-default bg-light m-lg">
|
||||
<div class="panel-body m-r">
|
||||
<ng-include src="'<%= asset_pack_path "spaces/_form.html" %>'"></ng-include>
|
||||
<ng-include src="'spaces/_form.html'"></ng-include>
|
||||
</div>
|
||||
|
||||
<div class="panel-footer no-padder">
|
||||
|
@ -23,7 +23,7 @@
|
||||
<section class="m-lg spaces-list"
|
||||
ui-tour="spaces"
|
||||
ui-tour-backdrop="true"
|
||||
ui-tour-template-url="'<%= asset_pack_path "shared/tour-step-template.html" %>'"
|
||||
ui-tour-template-url="'shared/tour-step-template.html'"
|
||||
ui-tour-use-hotkeys="true"
|
||||
ui-tour-scroll-parent-id="content-main"
|
||||
post-render="setupSpacesTour">
|
||||
|
@ -39,7 +39,7 @@
|
||||
|
||||
<section class="panel panel-default bg-light m-lg">
|
||||
<div class="panel-body m-r">
|
||||
<ng-include src="'<%= asset_pack_path 'spaces/_form.html' %>'"></ng-include>
|
||||
<ng-include src="'spaces/_form.html'"></ng-include>
|
||||
</div>
|
||||
|
||||
<div class="panel-footer no-padder">
|
||||
|
@ -17,7 +17,7 @@
|
||||
<div class="row no-gutter training-reserve">
|
||||
<div class="col-sm-12 col-md-12 col-lg-9">
|
||||
<div ui-calendar="calendarConfig" ng-model="eventSources" calendar="calendar" class="wrapper-lg" ng-show="!plansAreShown"></div>
|
||||
<ng-include ng-if="modules.plans" src="'<%= asset_pack_path "plans/_plan.html" %>'"></ng-include>
|
||||
<ng-include ng-if="modules.plans" src="'plans/_plan.html'"></ng-include>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -40,9 +40,9 @@
|
||||
|
||||
<div class="modal-footer text-center">
|
||||
<i class="fa fa-lock fa-2x m-r-sm pos-rlt" style="top:7px; color:#9edd78;"></i>
|
||||
<%= image_pack_tag("powered_by_stripe.png", class: 'm-r-sm') %>
|
||||
<%= image_pack_tag("mastercard.png", class: 'm-r-sm') %>
|
||||
<%= image_pack_tag("visa.png", class: 'm-r-sm') %>
|
||||
<img src="powered_by_stripe.png" class="m-r-sm" />
|
||||
<img src="mastercard.png" class="m-r-sm" />
|
||||
<img src="visa.png" class="m-r-sm" />
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
<div class="row no-gutter training-reserve">
|
||||
<div class="col-sm-12 col-md-12 col-lg-9">
|
||||
<div ui-calendar="calendarConfig" ng-model="eventSources" calendar="calendar" class="wrapper-lg" ng-show="!plansAreShown"></div>
|
||||
<ng-include ng-if="modules.plans" src="'<%= asset_pack_path "plans/_plan.html" %>'"></ng-include>
|
||||
<ng-include ng-if="modules.plans" src="'plans/_plan.html'"></ng-include>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -123,10 +123,10 @@
|
||||
<%= javascript_packs_with_chunks_tag 'application' %>
|
||||
|
||||
<!-- i18n of external libraries -->
|
||||
<script type="text/javascript" src="<%= asset_pack_path "angular-i18n/angular-locale_#{Rails.application.secrets.angular_locale}.js" %>"></script>
|
||||
<script type="text/javascript" src="angular-i18n/angular-locale_#{Rails.application.secrets.angular_locale}.js"></script>
|
||||
<!-- if required locale does not exist, use the default "en" -->
|
||||
<% if asset_available?("moment/locale/#{Rails.application.secrets.moment_locale}.js") %>
|
||||
<script type="text/javascript" src="<%= asset_pack_path "moment/locale/#{Rails.application.secrets.moment_locale}.js" %>"></script>
|
||||
<script type="text/javascript" src="moment/locale/#{Rails.application.secrets.moment_locale}.js"></script>
|
||||
<%
|
||||
elsif Rails.application.secrets.moment_locale != 'en'
|
||||
raise LoadError, "moment/locale/#{Rails.application.secrets.moment_locale}.js does not exists"
|
||||
@ -134,7 +134,7 @@
|
||||
%>
|
||||
<!-- if required locale does not exist, use the default "en-US" -->
|
||||
<% if asset_available?("summernote/lang/summernote-#{Rails.application.secrets.summernote_locale}.js") %>
|
||||
<script type="text/javascript" src="<%= asset_pack_path "summernote/lang/summernote-#{Rails.application.secrets.summernote_locale}.js" %>"></script>
|
||||
<script type="text/javascript" src="summernote/lang/summernote-#{Rails.application.secrets.summernote_locale}.js"></script>
|
||||
<%
|
||||
elsif Rails.application.secrets.summernote_locale != 'en-US'
|
||||
raise LoadError, "summernote/lang/summernote-#{Rails.application.secrets.summernote_locale}.js does not exists"
|
||||
@ -142,7 +142,7 @@
|
||||
%>
|
||||
<!-- if required locale does not exist, use the default "en" -->
|
||||
<% if asset_available?("fullcalendar/dist/lang/#{Rails.application.secrets.fullcalendar_locale}.js") %>
|
||||
<script type="text/javascript" src="<%= asset_pack_path "fullcalendar/dist/lang/#{Rails.application.secrets.fullcalendar_locale}.js" %>"></script>
|
||||
<script type="text/javascript" src="fullcalendar/dist/lang/#{Rails.application.secrets.fullcalendar_locale}.js"></script>
|
||||
<%
|
||||
elsif Rails.application.secrets.fullcalendar_locale != 'en'
|
||||
raise LoadError, "fullcalendar/dist/lang/#{Rails.application.secrets.fullcalendar_locale}.js does not exists"
|
||||
|
@ -1,5 +1,6 @@
|
||||
const { environment } = require('@rails/webpacker');
|
||||
const erb = require('./loaders/erb');
|
||||
const htmlErb = require('./loaders/html_erb');
|
||||
const jsErb = require('./loaders/js_erb');
|
||||
const html = require('./loaders/html');
|
||||
const webpack = require('webpack');
|
||||
|
||||
@ -8,8 +9,10 @@ environment.plugins.prepend('Provide', new webpack.ProvidePlugin({
|
||||
jQuery: 'jquery'
|
||||
}));
|
||||
|
||||
environment.loaders.prepend('js.erb', jsErb);
|
||||
environment.loaders.prepend('html.erb', htmlErb);
|
||||
environment.loaders.append('html', html);
|
||||
environment.loaders.prepend('erb', erb);
|
||||
|
||||
environment.splitChunks();
|
||||
|
||||
module.exports = environment;
|
||||
|
@ -1,13 +1,4 @@
|
||||
module.exports = {
|
||||
test: /\.html(\.erb)?$/,
|
||||
use: [{
|
||||
loader: 'html-loader',
|
||||
options: {
|
||||
minimize: true,
|
||||
removeAttributeQuotes: false,
|
||||
caseSensitive: true,
|
||||
customAttrSurround: [[/#/, /(?:)/], [/\*/, /(?:)/], [/\[?\(?/, /(?:)/]],
|
||||
customAttrAssign: [/\)?\]?=/]
|
||||
}
|
||||
}]
|
||||
test: /\.html$/i,
|
||||
loader: 'html-loader'
|
||||
};
|
||||
|
7
config/webpack/loaders/html_erb.js
Normal file
7
config/webpack/loaders/html_erb.js
Normal file
@ -0,0 +1,7 @@
|
||||
module.exports = {
|
||||
test: /\.html\.erb$/,
|
||||
loader: [
|
||||
'rails-erb-loader',
|
||||
'html-loader'
|
||||
]
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user