Exemple #1
0
## -- coding: utf-8 --

from django.conf.urls import url
from django.utils.translation import ugettext_lazy as _
from pytigon_lib.schviews import generic_table_start, gen_tab_action, gen_row_action
from django.views.generic import TemplateView
from . import views

urlpatterns = [
    gen_tab_action('Nag', 'rebuild', views.rebuild),
    url('kalkulator_tables/(?P<tab>\d+)/$', views.kalkulator_tables, {}),
    url('kalkulator_zmieniony/$', views.kalkulator_zmieniony, {}),
    url('kiedy_kalk_zmieniony/$', views.kiedy_kalk_zmieniony, {}),
    gen_tab_action('CastoramaStanMag', 'load_castorama_data',
                   views.load_castorama_data),
    url(r'^kalkulator1',
        TemplateView.as_view(template_name='sprzedaz/kalkulator_cenowy.html'),
        {"title": "Kalkulator cenowy"}),
    url(r'^kalkulator2',
        TemplateView.as_view(template_name='sprzedaz/kalkulator_mm.html'), {}),
    url(
        r'^kalkulator3',
        TemplateView.as_view(
            template_name='sprzedaz/kalkulator_kontrakt.html'), {}),
    url(
        r'^kalkulator_sync',
        TemplateView.as_view(
            template_name='sprzedaz/kalkulator_synchronizacja.html'), {}),
    url('form/LoadKalkulatorData/$', views.view_loadkalkulatordata, {}),
]
Exemple #2
0
## -- coding: utf-8 --

from django.conf.urls import url
from django.utils.translation import ugettext_lazy as _
from pytigon_lib.schviews import generic_table_start, gen_tab_action, gen_row_action
from django.views.generic import TemplateView
from . import views

urlpatterns = [
    gen_tab_action('UserAD', 'synchr_ad', views.synchr_ad),
    gen_tab_action('UserSoftlab', 'synchr_softlab', views.synchr_softlab),
    gen_tab_action('NowyKomputer', 'synchr_komp', views.synchr_komp),
    url('form/RaportForm/$', views.view_raportform, {}),
    url('form/ImportPracForm/$', views.view_importpracform, {}),
]

gen = generic_table_start(urlpatterns, 'spisy', views)

gen.standard('UserAD', _('AD user'), _('AD users'))
gen.standard('UserSoftlab', _('Softlab user'), _('Softab users'))
gen.standard('TypKomputera', _('Computer type'), _('Computer types'))
gen.standard('NowyKomputer', _('New computer'), _('New computers'))
gen.standard('StarySprzet', _('Old equipment'), _('Old equipments'))
gen.standard('Lokalizacja', _('Location'), _('Locations'))
gen.standard('Switch', _('Switch'), _('Switches'))
gen.standard('WAN', _('WAN'), _('WAN'))
gen.standard('WiFi', _('WiFi'), _('WiFi'))
gen.standard('CentralaTel', _('Telephone exchange'), _('Telephone exchanges'))
gen.standard('NowaDrukarka', _('New printer'), _('New printers'))
gen.standard('UserPolbruk', _('UserPolbruk'), _('UserPolbruk'))
Exemple #3
0
## -- coding: utf-8 --

from django.conf.urls import url
from django.utils.translation import ugettext_lazy as _
from pytigon_lib.schviews import generic_table_start, gen_tab_action, gen_row_action
from django.views.generic import TemplateView
from . import views

urlpatterns = [
    url('^(?P<app_or_subject>[^/]*)/(?P<page_path>[^/]*)/view/$',
        views.view_page),
    url('^(?P<app_or_subject>\w*)/(?P<page_name>\w*)/edit/$', views.edit_page),
    gen_row_action('PageObjectsConf', 'insert_object_to_editor',
                   views.insert_object_to_editor),
    gen_tab_action('PageObjectsConf', 'edit_page_object',
                   views.edit_page_object),
    gen_row_action('WikiConf', 'publish', views.publish),
    url('(?P<q>.*)/search/$', views.search, {}),
]

gen = generic_table_start(urlpatterns, 'schwiki', views)

gen.standard('PageObjectsConf', _('Page objects configurations'),
             _('Page objects configurations'))
gen.standard('Page', _('Page'), _('Page'))
gen.standard('WikiConf', _('Wiki config'), _('Wiki config'))
Exemple #4
0
## -- coding: utf-8 --

from django.conf.urls import url
from django.utils.translation import ugettext_lazy as _
from pytigon_lib.schviews import generic_table_start, gen_tab_action, gen_row_action
from django.views.generic import TemplateView
from . import views

urlpatterns = [
    gen_tab_action('Ad', 'sync', views.sync),
    gen_tab_action('Ad', 'errors', views.errors),
    url('fun/(?P<parm>\d+)/$', views.confirm, {}),
]

gen = generic_table_start(urlpatterns, 'crh', views)

gen.standard('Ad', _('AD'), _('AD'))
gen.standard('AgreementDoc', _('Agreement document'), _('Agreement documents'))
gen.standard('Agreement', _('Agreement'), _('Agreements'))

gen.for_field('Ad', 'agreement_set', _('Agreement'), _('Agreements'))
gen.for_field('AgreementDoc', 'agreement_set', _('Agreement'), _('Agreements'))
Exemple #5
0
## -- coding: utf-8 --

from django.conf.urls import url
from django.utils.translation import ugettext_lazy as _
from pytigon_lib.schviews import generic_table_start, gen_tab_action, gen_row_action
from django.views.generic import TemplateView
from . import views

urlpatterns = [
    gen_tab_action('Employee', 'sync', views.sync),
    gen_tab_action('Employee', 'compare', views.compare),
    url('form/employee_import/$', views.view_employee_import, {}),
]

gen = generic_table_start(urlpatterns, 'config', views)

gen.standard('Employee', _('Employee'), _('Employees'))
Exemple #6
0
## -- coding: utf-8 --

from django.conf.urls import url
from django.utils.translation import ugettext_lazy as _
from pytigon_lib.schviews import generic_table_start, gen_tab_action, gen_row_action
from django.views.generic import TemplateView
from . import views

urlpatterns = [
    url(
        'edit/(?P<d>\d{4}-\d{2}-\d{2})/(?P<mg>\w+)/(?P<kar>\d+)/(?P<c>\w+)/(?P<kw>.+)',
        views.edit_wiek),
    gen_tab_action('Raporty', 'gen', views.gen),
    gen_tab_action('Raporty', 'gen2', views.gen2),
    url('kwerenda/(?P<name>\w+)/$', views.kwerenda, {}),
    url('rep_gen/(?P<rep_id>\d+)/$', views.rep_gen, {}),
    url('form/WiekowanieForm/$', views.view_wiekowanieform, {}),
    url('form/SaldaForm/$', views.view_saldaform, {}),
    url('form/ObrotyTransport/$', views.view_obrotytransport, {}),
    url('form/FakturaWzTest/$', views.view_fakturawztest, {}),
    url('form/SimpleReport/$', views.view_simplereport, {}),
    url('form/Tranformer/$', views.view_tranformer, {}),
]

gen = generic_table_start(urlpatterns, 'raporty', views)

gen.standard('Raporty', _('Raporty'), _('Raporty'))
gen.standard('Kwerendy', _('Kwerendy'), _('Kwerendy'))
Exemple #7
0
## -- coding: utf-8 --

from django.conf.urls import url
from django.utils.translation import ugettext_lazy as _
from pytigon_lib.schviews import generic_table_start, gen_tab_action, gen_row_action
from django.views.generic import TemplateView
from . import views


urlpatterns = [
    gen_row_action('SChAppSet', 'gen', views.gen),
    gen_row_action('SChAppSet', 'prj_export', views.prj_export),
    gen_tab_action('SChAppSet', 'prj_import', views.prj_import),
    gen_row_action('SChAppSet', 'manage', views.manage),
    gen_row_action('SChTable', 'template_edit', views.template_edit),
    gen_tab_action('SChAppSet', 'prj_import/edit', views.edit),
    gen_row_action('SChField', 'field_up', views.change_pos, {'app':'schbuilder', 'tab':'SChField', 'forward':False, 'field': 'parent'}),
    gen_row_action('SChField', 'field_down', views.change_pos, {'app':'schbuilder', 'tab':'SChField', 'forward':True, 'field': 'parent'}),
    gen_row_action('SChField', 'field_duplicate', views.duplicate_row, {'app':'schbuilder', 'tab':'SChField', 'field':'parent'}),
    gen_row_action('SChTable', 'field_up', views.change_tab_pos, {'app':'schbuilder', 'tab':'SChTable', 'forward':False, 'field': 'parent'}),
    gen_row_action('SChTable', 'field_down', views.change_tab_pos, {'app':'schbuilder', 'tab':'SChTable', 'forward':True, 'field': 'parent'}),
    gen_row_action('SChForm', 'template_edit2', views.template_edit2),
    gen_row_action('SChAppMenu', 'field_up', views.change_menu_pos, {'app':'schbuilder', 'tab':'SChAppMenu', 'forward':False, 'field': 'parent'}),
    gen_row_action('SChAppMenu', 'field_down', views.change_menu_pos, {'app':'schbuilder', 'tab':'SChAppMenu', 'forward':True, 'field': 'parent'}),
    gen_row_action('SChAppSet', 'installer', views.installer),
    gen_tab_action('SChAppSet', 'restart_server', views.restart_server),
    gen_row_action('SChFormField', 'field_up', views.change_pos_form_field, {'app':'schbuilder', 'tab':'SChFormField', 'forward':False, 'field': 'parent'}),
    gen_row_action('SChFormField', 'field_down', views.change_pos_form_field, {'app':'schbuilder', 'tab':'SChFormField', 'forward':True, 'field': 'parent'}),
    gen_row_action('SChView', 'template_edit3', views.template_edit3),
    gen_tab_action('SChAppSet', 'update', views.update),
    gen_row_action('SChLocale', 'translate_sync', views.translate_sync),
Exemple #8
0
## -- coding: utf-8 --

from django.conf.urls import url
from django.utils.translation import ugettext_lazy as _
from pytigon_lib.schviews import generic_table_start, gen_tab_action, gen_row_action
from django.views.generic import TemplateView
from . import views


urlpatterns = [
    gen_tab_action('GrupaPraw', 'grupy_import', views.grupy_import),
    gen_tab_action('Dzial', 'dzial_import', views.dzial_import),
    gen_tab_action('Lokalizacja', 'lok_import', views.lok_import),
    gen_tab_action('Operator', 'gen_karty', views.gen_karty),
    gen_tab_action('Operator', 'oper_import', views.oper_import),
    gen_tab_action('Operator', 'oper_imp_dzial', views.oper_imp_dzial),
    gen_tab_action('Operator', 'oper_imp_przel', views.oper_imp_przel),
    gen_row_action('DokPrzydzielenia', 'zatwierdz', views.zatwierdz),
    gen_tab_action('Operator', 'oper_imp_lokal', views.oper_imp_lokal),
    gen_row_action('DokOdebrania', 'zatwierdz2', views.zatwierdz2),
    gen_tab_action('GrupaPraw', 'fun_praw', views.fun_praw),
    gen_tab_action('GrupaPraw', 'grupa_praw', views.grupa_praw),
    gen_tab_action('Operator', 'spr_praw', views.spr_praw),
    gen_tab_action('Operator', 'regenerate_user_groups', views.regenerate_user_groups),
    gen_tab_action('Operator', 'gen_wnioski_wg_softlaba', views.gen_wnioski_wg_softlaba),
    gen_row_action('Operator', 'gen', views.gen),
    gen_row_action('Operator', 'gen', views.gen),