diff --git a/services/presentation/app/templates/_form_options.html b/services/presentation/app/templates/_form_options.html new file mode 100644 index 0000000..5efd8d8 --- /dev/null +++ b/services/presentation/app/templates/_form_options.html @@ -0,0 +1,21 @@ +{# Opcje obliczeń — WSPÓLNE dla „Horoskop" (/) i „Skompiluj" (/compile). Jeden plik, + bo dodawaliśmy je już 3× w dwóch formularzach i groziło rozjechaniem (regresja + podsumowania). Wszystkie synchronizowane między zakładkami przez formsync.js. #} +
+ + +
+
+ {% set chosen = form.house_systems or [] %} + Porównaj systemy domów: + + + +
+
+ + + +
diff --git a/services/presentation/app/templates/chart.html b/services/presentation/app/templates/chart.html index 599d926..563604c 100644 --- a/services/presentation/app/templates/chart.html +++ b/services/presentation/app/templates/chart.html @@ -51,24 +51,7 @@ {% include "_location_picker.html" %} -
- - -
-
- {% set chosen = form.house_systems or [] %} - Porównaj systemy domów: - - - -
-
- - - -
+ {% include "_form_options.html" %} {% if location_label %}

Wstępnie wpisano lokalizację: {{ location_label }} ({{ form.lat }}, {{ form.lon }}). Zmień pola lub kliknij „Tu i teraz".

{% endif %}
@@ -104,102 +87,6 @@ {% endif %} - {% if result.angles %} - - - - {% for key in ["Asc", "MC", "Dsc", "IC"] %} - {% set a = result.angles[key] %} - - {% endfor %} - -
ZnakW znaku
{{ a.name }}{{ a.sign }}{{ a.in_sign }}
- {% endif %} - - {# Porównanie systemów domów (PRE-05) — te same osie, inny podział na domy #} - {% if result.house_systems and result.house_systems | length > 1 %} - {% set HSN = {'whole_sign': 'Whole Sign', 'equal': 'Equal', 'porphyry': 'Porphyry'} %} -
Porównanie systemów domów ({{ result.house_systems | length }})
- - {% for hs in result.house_systems %}{% endfor %} - - {% for i in range(12) %} - - {% for hs in result.house_systems %} - - {% endfor %} - - {% endfor %} - -
Dom{{ HSN.get(hs.system, hs.system) }}
{{ i + 1 }}{{ hs.cusps[i].sign_glyph }} {{ hs.cusps[i].in_sign }}
- {% endif %} - - - - - - - - - - - {% for p in result.positions %} - - - - - - - - - - - {% endfor %} - -
Sym.ObiektZnakW znakuDomKier.Prędkość °/dDekl.
{{ p.glyph or '' }}{% if p.sign_glyph %} {{ p.sign_glyph }}{% endif %}{{ p.name }}{{ p.sign }}{{ p.in_sign }}{{ p.house if p.house is defined else '—' }}{{ p.direction }}{{ '%+.4f' | format(p.speed) }}{% if p.declination is defined %}{{ '%+.2f°' | format(p.declination) }}{% if p.out_of_bounds %} OOB{% endif %}{% else %}—{% endif %}
- - {% if result.lots %} -
Lots hermetyczne ({{ result.lots | length }}) · sekta: {{ result.sect }}
- - - - {% for l in result.lots %} - - {% endfor %} - -
LotZnakW znakuDomFormuła
{{ l.name }}{{ l.sign }}{{ l.in_sign }}{{ l.house }}{{ l.formula }}
- {% endif %} - - {% set with_stations = result.positions | selectattr('stations', 'defined') | list %} - {% if with_stations %} -
Stacje planet (poprzednia / następna; blisko = mniej niż 7 dni)
- - - - {% for p in with_stations %} - - - - - - {% endfor %} - -
PlanetaPoprzedniaNastępna
{{ p.name }}{% if p.stations.station_soon %} blisko{% endif %}{% if p.stations.prev %}{{ p.stations.prev.type }} · {{ p.stations.prev.date }} · {{ p.stations.prev.degree }} ({{ p.stations.prev.days }} d){% else %}—{% endif %}{% if p.stations.next %}{{ p.stations.next.type }} · {{ p.stations.next.date }} · {{ p.stations.next.degree }} (+{{ p.stations.next.days }} d){% else %}—{% endif %}
- {% endif %} - - {% if result.aspects %} -
Aspekty główne ({{ result.aspects | length }})
- - - - {% for a in result.aspects %} - - {% endfor %} - -
Obiekt 1AspektObiekt 2OrbA/S
{{ a.obj1 }}{% if a.glyph %}{{ a.glyph }} {% endif %}{{ a.aspect }}{{ a.obj2 }}{{ '%.2f'|format(a.orb) }}°{{ a['as'] if a['as'] is defined else '—' }}
- {% endif %} - - {# Aspekty pozazodiakalne (LOG-07): paralele deklinacji i antyscja #} {% if declination_svg %}
{{ declination_svg | safe }} @@ -207,24 +94,6 @@
{% endif %} - {% if result.parallels %} -
Paralele deklinacji ({{ result.parallels | length }})
- - - - {% for r in result.parallels %} - - - - - - - - {% endfor %} - -
Obiekt 1RodzajObiekt 2OrbDekl.
{{ r.obj1 }}{{ 'paralela' if r.type == 'parallel' else 'kontrparalela' }}{{ r.obj2 }}{{ '%.2f'|format(r.orb) }}°{{ '%+.2f'|format(r.dec1) }} / {{ '%+.2f'|format(r.dec2) }}
- {% endif %} - {% if antiscia_svg %}
{{ antiscia_svg | safe }} @@ -232,117 +101,7 @@
{% endif %} - {% if result.antiscia %} -
Antyscja ({{ result.antiscia | length }})
- - - - {% for r in result.antiscia %} - - - - - - - {% endfor %} - -
Obiekt 1RodzajObiekt 2Orb
{{ r.obj1 }}{{ 'antyscja' if r.type == 'antiscion' else 'kontrantyscja' }}{{ r.obj2 }}{{ '%.2f'|format(r.orb) }}°
- {% endif %} - - {% if result.tables %} - {% set tb = result.tables %} -
Tabele dodatkowe (LOG-23)
- - {% set bal = tb.tally.with_modern_10_plus_asc %} - - - - - {% for e, n in bal.elements.items() %} - - {% endfor %} - - - {% for q, n in bal.qualities.items() %} - - {% endfor %} - - - -
Bilans (10 planet + Asc)Rozkład
Żywioły{{ tb.tally.labels.elements[e] }}: {{ n }}
Jakości{{ tb.tally.labels.qualities[q] }}: {{ n }}
- {% if tb.tally.missing_elements or tb.tally.missing_qualities %} -

Brak: - {% for e in tb.tally.missing_elements %}{{ tb.tally.labels.elements[e] }}{{ ", " if not loop.last }}{% endfor %} - {% for q in tb.tally.missing_qualities %}{{ tb.tally.labels.qualities[q] }}{{ ", " if not loop.last }}{% endfor %} -

- {% endif %} - - {% if tb.moon_phase %} -

- Faza Księżyca: {{ tb.moon_phase.phase_pl }} · - elongacja {{ '%.2f'|format(tb.moon_phase.angle) }}° · - oświetlenie {{ '%.1f'|format(tb.moon_phase.illumination * 100) }}% · - {{ 'przybywa' if tb.moon_phase.waxing else 'ubywa' }} -

- {% endif %} - - {% if tb.planetary_hours %} - {% set ph = tb.planetary_hours %} -

- Godziny planetarne: władca dnia {{ ph.day_ruler }} · - {{ ph.hour_number }}. godzina ({{ ph.period }}), władca {{ ph.hour_ruler }} · - godzina trwa {{ ph.hour_length_minutes }} min -

- {% endif %} - - {% if tb.prenatal_syzygy %} - {% set s = tb.prenatal_syzygy %} -

- Syzygia prenatalna: {{ s.type_pl }} {{ s.when_utc }} - ({{ s.days_before_birth }} dni przed) w {{ s.in_sign }} -

- {% endif %} - - {% if tb.critical_degrees %} -
Stopnie krytyczne
- - - - {% for c in tb.critical_degrees %} - - - {% endfor %} - -
ObiektPozycjaUwaga
{{ c.name }}{{ c.in_sign }}{{ c.flags | join('; ') }}
- {% endif %} - -
- Podziały: dwunastniki (D12) i nawamsa (D9) - - - - {% for d in tb.divisional %} - - - {% endfor %} - -
ObiektD12D9
{{ d.name }}{{ d.d12_in_sign }}{{ d.d9_in_sign }}
-
- {% endif %} - - {% if result.cusps %} -
- Cusps domów ({{ result.house_system }}) - - - - {% for c in result.cusps %} - - {% endfor %} - -
DomZnakCusp
{{ c.house }}{{ c.sign }}{{ c.in_sign }}
-
- {% endif %} + {% include "_result_tables.html" %} {% endif %} diff --git a/services/presentation/app/templates/compile.html b/services/presentation/app/templates/compile.html index f41945b..800e9d5 100644 --- a/services/presentation/app/templates/compile.html +++ b/services/presentation/app/templates/compile.html @@ -55,26 +55,9 @@ zapamiętane predykcje okresowe. Dane pobiera z pozostałych zakładek — nie t
- {# Te same opcje co na „Horoskop" — synchronizowane między zakładkami (formsync), - żeby podsumowanie liczyło się z tym, co wybrano przy horoskopie (nie okrojone). #} -
- - -
-
- {% set chosen = form.house_systems or [] %} - Porównaj systemy domów: - - - -
-
- - - -
+ {# Te same opcje co na „Horoskop" (wspólny plik) — synchronizowane między + zakładkami (formsync), żeby podsumowanie liczyło się z tym, co wybrano. #} + {% include "_form_options.html" %}